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 <[email protected]>:

> 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 <[email protected]>:
>
>> 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 <[email protected]>:
>>
>>> 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
>>> [email protected]
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>>
>>
>>
>
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to