Ticket #2895 (new defect)
Opened 4 years ago
mapserver fails loading a shapefile if it has a dot in its name
| Reported by: | tbonfort | Owned by: | sdlime |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | MapServer C Library | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | |
| Cc: |
Description
DATA "TM_WORLD_BORDERS_SIMPL-0.3"
fails to load because the shapefile has a dot in its name, and is considered as a file with a ".3" extension, rather than a reference to TM_WORLD_BORDERS_SIMPL-0.3.shp
code in question is in mapshape.c (circa line 238):
for( i = strlen(pszBasename)-1; i > 0 && pszBasename[i] != '.' && pszBasename[i] != '/' && pszBasename[i] != '\\'; i-- ) {}
Note: See
TracTickets for help on using
tickets.
