J'ai besoin d'afficher une image raster au format GeoTiff, il a été géoréférencé avec QGIS. Il semble que Openlayers 3.15 ne supporte pas ce type de format. Savez-vous quelque chose à ce sujet?Afficher GeoTiff image 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
});
Je ne pense pas qu'il est possible, voir aussi ces questions sur le SIG sE: http://gis.stackexchange.com/questions/15095/comment-afficher-une-image-de-geotiff-avec-openlayers-a-la-bonne-place http://gis.stackexchange.com/questions/97943/how-to-open-geotiff- couche-base-sur-openlayers – chrki
Est-ce encore disponible pour la version 4? Avez-vous trouvé une solution? –