[Qgis-developer] Get QGIS project EPSG code

Denis Rouzaud denis.rouzaud at gmail.com
Fri Sep 26 05:00:16 PDT 2014


Then iface.mapCanvas().mapRenderer().destinationCrs() should do the job, no?


On 26.09.2014 13:53, PIERRE Sylvain wrote:
>
> Thanks
>
> It should works, but…
>
> I’m working with 2.2 API and mapSettings doesn’t exist for this release.
>
> I should have to migrate my devs (for other reasons ;-)
>
> Sylvain
>
> *De :*Denis Rouzaud [mailto:denis.rouzaud at gmail.com]
> *Envoyé :* vendredi 26 septembre 2014 13:43
> *À :* PIERRE Sylvain; QGIS Developer
> *Objet :* Re: [Qgis-developer] Get QGIS project EPSG code
>
> Hi,
>
> iface.mapCanvas().mapSettings().destinationCrs()
>
> Cheers,
>
> Denis
>
> On 26.09.2014 13:31, PIERRE Sylvain wrote:
>
>     Hello,
>
>     PyQGIS question:
>
>     I just want to get EPSG code set at project level when on-the-fly
>     reprojection is active.
>
>     I suppose it should be available in destinationCrs() properties
>     from mapRenderer, but nothing found.
>
>     Any idea?
>
>     Thanks
>
>     Sylvain
>
>
>
>
>     _______________________________________________
>
>     Qgis-developer mailing list
>
>     Qgis-developer at lists.osgeo.org  <mailto:Qgis-developer at lists.osgeo.org>
>
>     http://lists.osgeo.org/mailman/listinfo/qgis-developer
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140926/265b58e3/attachment.html>


More information about the Qgis-developer mailing list