我需要以GeoTiff格式顯示柵格圖像,並使用QGIS進行地理參考。它看起來像Openlayers 3.15不支持這種格式。你知道這件事嗎?顯示GeoTiff圖像Openlayers 3
var agentUrl = 'http://localhost:9925/Wgis/assets/img/allertaMeteoGeo.tif';
var bounds = [ 713101.704, 4044061.027, 713101.704, 4044061.027];
var view2 = new ol.View({
center : [ -87.7302542509315, 43.744459064634 ],
projection : "EPSG:3857",
zoom : 12
});
var sorgente = new ol.source.ImageMapGuide({
projection : "EPSG:3857",
url : agentUrl,
metersPerUnit : 111319.4908,
imageSize: [792, 452],
ratio : 2
});
var raster = new ol.layer.Image({
extent : bounds,
source : sorgente
});
var map2 = new ol.Map({
layers : [ raster ],
target : 'map2',
view : view2
});
我不認爲這是可能的,也看到在GIS這些問題SE:http://gis.stackexchange.com/questions/15095/how-to-display-a-geotiff-image-with-openlayers-at-the-right-place http://gis.stackexchange.com/questions/97943/how-to-open-geotiff-作爲底層開放層 – chrki
這是仍然可用於版本4?你找到了解決方案嗎? –