Ticket #1085 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

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:
Platform Version: Platform: All
Must Fix for Release: Yes 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

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

Change History

Changed 5 years ago by msieczka

example shapefile in UTM 33N SRS

follow-up: ↓ 2   Changed 5 years ago by msieczka

  • status changed from new to closed
  • resolution set to worksforme

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   Changed 5 years ago by jef

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

  Changed 4 years ago by anonymous

  • milestone Version 0.9.2 deleted

Milestone Version 0.9.2 deleted

Note: See TracTickets for help on using tickets.