Bug report #1604
Projection recognition fails when a .qml file exists
|Affected QGIS version:||Regression?:||No|
|Operating System:||Debian||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||11664|
I have two shape files showing graticules, both projected in EPSG:4326 and both shapefiles provide a .prj file with the same content:
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: