Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#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)

sample_utm33n.zip (73.2 KB ) - added by msieczka 16 years ago.
example shapefile in UTM 33N SRS

Download all attachments as: .zip

Change History (4)

by msieczka, 16 years ago

Attachment: sample_utm33n.zip added

example shapefile in UTM 33N SRS

comment:1 by msieczka, 16 years ago

Resolution: worksforme
Status: newclosed

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.

in reply to:  1 comment:2 by jef, 16 years ago

Replying to msieczka:

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.

maybe r8592

comment:3 by (none), 15 years ago

Milestone: Version 0.9.2

Milestone Version 0.9.2 deleted

Note: See TracTickets for help on using tickets.