[QGIS-Developer] Convert from mapunits to pixels

Enrico Ferreguti enricofer at gmail.com
Fri Nov 10 01:51:46 PST 2017


Hi Tom, I'm not sure to understand your problem, I point you to the
function that downloads vector tiles from mapillary doing that conversion:
https://github.com/enricofer/go2mapillary/blob/6c452b768e8bf8264516f27db33b1e6c690ada48/mapillary_coverage.py#L139

2017-11-09 17:26 GMT+01:00 Tom Chadwin <tom.chadwin at nnpa.org.uk>:

> Hello all
>
> I've never implemented support of any unit other than pixels in my plugin.
> A
> particular use case (vector tiles) could really use mapunits. Can someone
> explain (or point me towards) the method for converting from mapunits to
> pixels for on-screen rendering?
>
> 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
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20171110/65ca48fb/attachment-0001.html>


More information about the QGIS-Developer mailing list