[QGIS-Developer] Convert from mapunits to pixels

Enrico Ferreguti enricofer at gmail.com
Fri Nov 10 04:35:49 PST 2017


did you noticed QgsMapCanvas.mapUnitsPerPixel
<https://qgis.org/api/classQgsMapCanvas.html#ad381f3ff0fc3a6db6cf1441b7a6eb754>()
?
then
lenght in pixels = lenght in mapunits / mapUnitsPerPixel
<https://qgis.org/api/classQgsMapCanvas.html#ad381f3ff0fc3a6db6cf1441b7a6eb754>
()

2017-11-10 13:27 GMT+01:00 Enrico Ferreguti <enricofer at gmail.com>:

> It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
> plugin search.
>
> 2017-11-10 13:26 GMT+01:00 Enrico Ferreguti <enricofer at gmail.com>:
>
>> It's a QGIS3 plugin, I have not yet understood how to exclude QGIS2 from
>> plugin search.
>>
>> 2017-11-10 12:22 GMT+01:00 Tom Chadwin <tom.chadwin at nnpa.org.uk>:
>>
>>> By the way, I couldn't load go2mapillary in 2.18.14 via the plugin
>>> manager -
>>> I get "cannot import name QgsDataSourceUri".
>>>
>>> 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/39942a9a/attachment.html>


More information about the QGIS-Developer mailing list