[Qgis-developer] Raster providers

Radim Blazek radim.blazek at gmail.com
Thu Mar 31 05:12:42 EDT 2011


On Wed, Mar 9, 2011 at 12:24 PM, Giovanni Manghi
<giovanni.manghi at gmail.com> wrote:
> Regardless their CRS, GRASS rasters are always added to qgis with WGS84 CRS.

For me, QGIS sets CRS to raster's CRS but some info seems to be lost
in createFromWkt().

GRASS gives: GEOGCS["wgs84",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563],TOWGS84[0.000,0.000,0.000]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]

QgsCoordinateReferenceSystem.createFromWkt().toWkt() gives:
GEOGCS["WGS 84",DATUM["unknown",SPHEROID["WGS84",6378137,298.257223563],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]

QgsCoordinateReferenceSystem.authid(): EPSG:4148
QgsCoordinateReferenceSystem.description(): Hartebeesthoek94

Everything for CRS QgsCoordinateReferenceSystem created from WKT given
by GRASS above.

Here I am only QgsCoordinateReferenceSystem user, can anybody knowing
QgsCoordinateReferenceSystem explain what is happening and what is
wrong? I have added more debug output, you can grep everything
importing with grep -i crs.

> The region is not reprojected (I don't know if this should be expected).

Region should be reprojected of course, but that has nothing to do
with rasters, please fill a ticket for GRASS plugin.

Radim


More information about the Qgis-developer mailing list