Ticket #1524 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Fail to read case-sensitive shapefile names

Reported by: alexandre.leroux@ec.gc.ca Assigned to: mloskot
Priority: highest Milestone: 1.4.1
Component: OGR_SF Version: 1.4.0
Severity: normal Keywords:
Cc:

Description (Last modified by mloskot)

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

03/17/07 18:05:17 changed 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. 

03/17/07 18:29:32 changed by mloskot

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

03/17/07 18:36:20 changed by mloskot

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

03/18/07 12:01:05 changed by mloskot

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.

03/19/07 11:16:57 changed by alexandre.leroux@ec.gc.ca

(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! :-)

03/19/07 15:23:50 changed by mloskot

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.

03/25/07 20:23:44 changed by hobu

  • description changed.
  • milestone set to 1.4.1.

04/08/07 09:21:01 changed by mloskot

  • description changed.

04/08/07 10:35:24 changed by mloskot

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