[QGIS-Developer] PyQgis QgsCoordinateTransform constructor?
Denis Rouzaud
denis.rouzaud at gmail.com
Fri Dec 22 02:50:05 PST 2017
Le ven. 22 déc. 2017 à 04:39, Richard Duivenvoorde <rdmailings at duif.net> a
écrit :
> On 22-12-17 09:24, Richard Duivenvoorde wrote:
>
> >> crsTransform = QgsCoordinateTransform(crs2, crs)
>
> Just for reference, I think (but please correct me if otherwise) that
> for plugins this is then the easiest one?
>
> crsTransform = QgsCoordinateTransform(crs2, crs, QgsProject.instance())
>
Yes, please do so.
If you call with an empty context, this will not use project settings into
account.
> as even with a non saved project this will provide the necessary
> QgsCoordinateTransformContext ?
>
> R
>
> _______________________________________________
> 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/20171222/fed72fd4/attachment.html>
More information about the QGIS-Developer
mailing list