我正在尝试将我的geotiff NDVI数据绘制到传单上作为热图;但我无法渲染似乎正在显示的data.Nothing。我的geotiff在EPSG:4326中-这是geotiff;我正在尝试两个-
https://brian-transcription-test.s3.amazonaws.com/RGB_masked.tif
我的代码是这样的-
const map = L.map('devTestingDemo').setView([ 18.5286120,73.9715862], 30);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 10,
attribution:
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
}).addTo(map);
const windSpeed = LeafletGeotiff.leafletGeotiff(
'https://brian-transcription-test.s3.amazonaws.com/NDVINew4.tiff',
{
band: 0,
name: 'Wind speed',
renderer: new LeafletGeotiff.LeafletGeotiff.Plotty({
displayMin: 0,
displayMax: 30,
arrowSize: 20,
clampLow: false,
clampHigh: true,
colorScale: 'rainbow'
})
}
).addTo(map);
const windDirection = LeafletGeotiff.leafletGeotiff(
'https://brian-transcription-test.s3.amazonaws.com/NDVINew4.tiff',
{
band: 0,
name: 'Wind direction',
renderer: new LeafletGeotiff.LeafletGeotiff.VectorArrows({
arrowSize: 20,
displayMin: 0,
displayMax: 6,
})
}
).addTo(map);
}```发布于 2019-09-26 02:13:51
我会尝试将LeafletGeotiff更改为L。例如:
const windSpeed = L.leafletGeotiff(
'https://brian-transcription-test.s3.amazonaws.com/NDVINew4.tiff',
{
band: 0,
name: 'Wind speed',
renderer: new LeafletGeotiff.LeafletGeotiff.Plotty({
displayMin: 0,
displayMax: 30,
arrowSize: 20,
clampLow: false,
clampHigh: true,
colorScale: 'rainbow'
})
}
).addTo(map);我不确定这部分“新的LeafletGeotiff.LeafletGeotiff.Plotty”你将需要实验。
https://stackoverflow.com/questions/58101607
复制相似问题