[Qgis-user] epsg code of GRASS-plugin layers

Radim Blazek radim.blazek at gmail.com
Thu Jul 26 10:42:41 PDT 2012


On Thu, Jul 26, 2012 at 4:40 PM, Johannes Radinger <JRadinger at gmx.at> wrote:
> Hi,
>
> I am just wondering where QGIS takes the EPSG code from when I use the GRASS plugin to display a GRASS map.
> Somehow the EPSG code is set to 2397 (which is wrong, even a wrong ellipsoid). I don't know the correct EPSG (I have to check how I can get it inside GRASS), I just know the Projections settings of the GRASS location (the correct EPSG is close to 31467). So I always have to manually change the coordinate system of each map...

QGIS runs its GRASS module
  <qgis dir>/lib/qgisdules/qgis.g.info info=proj
which should print CRS WKT, you can try from GRASS shell.
WKT is then parsed by QgsCoordinateReferenceSystem.createFromWkt().

Radim

> Any suggestions?
>
> /Johannes
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user



More information about the Qgis-user mailing list