Opened 22 years ago

Closed 17 years ago

#166 closed defect (wontfix)

MapServer doesn't see uppercase .SHP files on Unix

Reported by: dmorissette Owned by: sdlime
Priority: highest Milestone:
Component: MapServer C Library Version: 4.1
Severity: normal Keywords:
Cc: pspencer@…

Description (last modified by sdlime)

We've had some users report that if they have shapefiles with their extension in 
uppercase (.SHP/.SHX/.DBF) on a Linux server then MapServer won't see them.  
This makes since the .shp extension is not included in the DATA parameter, it is 
added automatically in mapshape.c, and the code in mapshape.c doesn't try to 
handle uppercase extensions.  It is poossible that the same issue exists with 
image file formats as well but I didn't check.

We can either (1) document this problem and tell the users that they should make 
sure their shapefile dataset filename extensions are in lowercase, or (2) modify 
mapshape.c to try a lowercase .shp first, and then try again with .SHP if the 
first one failed.  The second option isn't very hard to implement, we do it all 
the time in OGR drivers, but it adds a little overhead.

What do you think Steve?  Should we fix this or just document the problem?

Change History (3)

comment:1 by dmorissette, 22 years ago

Steve Lime wrote:
> 
> Let's fix just before the 3.7 release, once all this new image handling
> stuff stabilizes.
>

comment:2 by dmorissette, 21 years ago

Priority: highhighest
Version: 3.64.1
Let's make this a P1 for 4.1

comment:3 by sdlime, 17 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

Trac is gonna make us clean these suckers out. I'd say anything this old should be closed and a new bug filed if necessary.

Steve

Note: See TracTickets for help on using tickets.