[QGIS-Developer] Convert from mapunits to pixels

Tom Chadwin tom.chadwin at nnpa.org.uk
Fri Nov 10 16:43:09 PST 2017


Because this conversion will not take place in QGIS but elsewhere, I need the
underlying maths for the conversion, not the API method. I've now found the
formula for EPSG:3857, and a method for all projections which works in
Leaflet, here:

https://stackoverflow.com/questions/27545098/leaflet-calculating-meters-per-pixel-at-zoom-level

Thanks

Tom



-----
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html


More information about the QGIS-Developer mailing list