Opened 13 years ago

Last modified 13 years ago

#1524 closed defect (fixed)

Fail to read case-sensitive shapefile names

Reported by: alexandre.leroux@… Owned by: Mateusz Łoskot
Priority: highest Milestone: 1.4.1
Component: OGR_SF Version: 1.4.0
Severity: normal Keywords:
Cc:

Description (last modified by Mateusz Łoskot)

OGR fails to read the shapefile.PRJ associated to a shapefile.shp file on Debian Linux.

The workaround is simply renaming the ".PRJ" to lowercase. OGR should read it whatever the case.

Change History (9)

comment:1 Changed 13 years ago by warmerdam

Similar issues no doubt exist with the .prj handling for gdal/frmts/aigrid, 
and gdal/frmts/aaigrid.

It may be suitable to consolidate the handling of this. 

comment:2 Changed 13 years ago by Mateusz Łoskot

Fixed reading .prj and .PRJ on case sensitive file systems, in r10994
http://trac.osgeo.org/gdal/changeset/10994

comment:3 Changed 13 years ago by Mateusz Łoskot

Added small improvements to latest fix:
http://trac.osgeo.org/gdal/changeset/10995

comment:4 Changed 13 years ago by Mateusz Łoskot

Fixed reading upper-case .PRJ for gdal/frmts/aaigrid (r11002):
http://trac.osgeo.org/gdal/changeset/11002

Added new test case checking this fix:
http://trac.osgeo.org/gdal/changeset/11003

As discussed with Frank, similar fixes for gdal/frmts/aigrid have been deferred.

I'm resolving the bug as FIXED.

Alexandre,
Please, verify and confirm if the fix for Shape works for you now.

comment:5 Changed 13 years ago by alexandre.leroux@…

(In reply to comment #4)
> Please, verify and confirm if the fix for Shape works for you now.

I'm confident the fix will work. I have no control over the version that's installed on our computers (!!). Will try it with the next official release. Thanks for the fix! :-)

comment:6 Changed 13 years ago by Mateusz Łoskot

Alexandre,
I added new test case checking if OGR Shape reads .PRJ file correctly:
http://trac.osgeo.org/gdal/changeset/11018

The test passes, so I assume the bug has been fixed.

comment:9 Changed 13 years ago by hobu

Description: modified (diff)
Milestone: 1.4.1

comment:10 Changed 13 years ago by Mateusz Łoskot

Description: modified (diff)

comment:11 Changed 13 years ago by Mateusz Łoskot

I submitted the fix to the stable branch 1.4 (r11223).

Note: See TracTickets for help on using tickets.