#1 Mon 27 July 2015 10:14
- image95
- Participant assidu
- Date d'inscription: 6 Sep 2014
- Messages: 298
QGIS : comment charger un WMS/WTS OSM ?
Bonjour à tous,
je souhaite pouvoir charger un fond wms/wts openstreet map dans qgis.
Savez vous si il suffit de récupérer des liens type URL à entrer ? Si oui, où peut on les récupérer?
Je ne compte plus passer par le plugin openlayerslayerplugin qui me fait trop de misère...
Merci d'avance.
Hors ligne
#2 Mon 27 July 2015 12:04
Re: QGIS : comment charger un WMS/WTS OSM ?
Bonjour,
voici une très bonne solution (qui évite une reprojection du projet avec le plugin OplenLayers plugin)
http://www.3liz.com/blog/rldhont/index. … es-in-QGIS
ci dessous un xml qui fonctionne bien pour mapnik :
Code:
<GDAL_WMS>
<Service name="TMS">
<ServerUrl>http://tile.openstreetmap.org/${z}/${x}/${y}.png</ServerUrl>
</Service>
<DataWindow>
<UpperLeftX>-20037508.34</UpperLeftX>
<UpperLeftY>20037508.34</UpperLeftY>
<LowerRightX>20037508.34</LowerRightX>
<LowerRightY>-20037508.34</LowerRightY>
<TileLevel>18</TileLevel>
<TileCountX>1</TileCountX>
<TileCountY>1</TileCountY>
<YOrigin>top</YOrigin>
</DataWindow>
<Projection>EPSG:3857</Projection>
<BlockSizeX>256</BlockSizeX>
<BlockSizeY>256</BlockSizeY>
<BandsCount>3</BandsCount>
<Cache />
</GDAL_WMS>Mathieu BOSSAERT
Association GeoRezo
Hors ligne


