#1085 closed bug (worksforme)
layer's SRS not recognized (at *first load* only)
Reported by: | msieczka | Owned by: | nobody |
---|---|---|---|
Priority: | critical: causes crash or data corruption | Milestone: | |
Component: | Projection Support | Version: | Trunk |
Keywords: | Cc: | ||
Must Fix for Release: | Yes | Platform: | All |
Platform Version: | Awaiting user input: | no |
Description
Even if the layer's SRS is not prone to bug #1079, as described in #1079 comment:2, QGIS fails to recognize the layer's SRS at each *first*, but *only at first* load. Example:
The attached layer is in EPSG:32633, which is in proj4 lingo:
+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs
the layer's ogrinfo output confirms:
$ ogrinfo -al -so sample_utm33n INFO: Open of `sample_utm33n' using driver `ESRI Shapefile' successful. Layer name: area Geometry: Polygon Feature Count: 1 Extent: (564573.435057, 5660045.542715) - (633165.320045, 5739296.325524) Layer SRS WKT: PROJCS["WGS_1984_UTM_Zone_33N", GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["Degree",0.017453292519943295]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",15], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1]] cat: Real (11.0
*Quit any QGIS instances you running.* Load the shapefile into QGIS. Depending on your setting in Settings > Options > Projection, QGIS will assign your default SRS or it will prompt you to pick on from the list - which means that QGIS fails to recognize the layer's SRS. Interstingly, at each subsequent loading of the same layer this problem does not take place anymore!
I suspect this is a QGIS issue. If it's down to GDAL or anything else please forward the ticket where it belongs.
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | sample_utm33n.zip added |
---|
follow-up: 2 comment:1 by , 16 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The bug is gone. I don't know why exactly. I cannot find anything possibly related in recent QGIS SVN comits. But I might be wrong (not C++ savvy I am). Closing it for now.
example shapefile in UTM 33N SRS