[QGIS-trac] [Quantum GIS] #1604: Projection recognition fails when
a .qml file exists
Quantum GIS
qgis at qgis.org
Tue Mar 31 08:57:00 EDT 2009
#1604: Projection recognition fails when a .qml file exists
------------------------------------------------+---------------------------
Reporter: dassau | Owner: nobody
Type: bug | Status: new
Priority: major: does not work as expected | Milestone: Version 1.1.0
Component: Projection Support | Version: HEAD
Keywords: .prj recognition .qml | Platform_version:
Platform: Debian | Must_fix: Yes
Status_info: 0 |
------------------------------------------------+---------------------------
I have two shape files showing graticules, both projected in EPSG:4326 and
both shapefiles provide a .prj file with the same content:
cat graticule.prj:
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223
563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
cat graticule_small.prj:
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223
563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
when I load the two files in QGIS (svn trunk from today) only for the
graticule.shp the projection is recognized and displayed in the "General"
tab of the layer properties dialog. The projection of the other shape file
graticule_small.shp is not recognized.
AFAICS it seems, that the projection is not recognized when I change the
symbology and save it as graticule_small.qml. When I delete the *.qml
file, the projection is recognized again correctly. This happens in QGIS
head and in the current stable release.
This means every time I want to use "OTF projection" support for a shape
with a saved style file (.qml) I have to define a CRS first before it
works, although a correct .prj file exists.
I put the two shapefiles here for testing:
http://www.nature-consult.de/dassau/muell/projrecog.zip
regards,
Otto
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1604>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list