Changeset 7566
- Timestamp:
- 05/07/08 00:13:29 (2 months ago)
- Files:
-
- branches/branch-5-0/mapserver/HISTORY.TXT (modified) (1 diff)
- branches/branch-5-0/mapserver/mapshape.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/branch-5-0/mapserver/HISTORY.TXT
r7564 r7566 13 13 Current Version (future 5.0.3, svn branch-5-0) 14 14 ---------------------------------------------- 15 16 - Don't ignore .qix file when DATA reference includes .shp extension (#590) 15 17 16 18 - CGI able to alter layers with space and underscores (#2516) branches/branch-5-0/mapserver/mapshape.c
r7261 r7566 1434 1434 rectObj shaperect; 1435 1435 char *filename; 1436 char *sourcename = 0; /* shape file source string from map file */ 1437 char *s = 0; /* pointer to start of '.shp' in source string */ 1438 1436 1439 1437 1440 if(shpfile->status) { … … 1455 1458 msSetBit(shpfile->status, i, 1); 1456 1459 } else { 1457 if((filename = (char *)malloc(strlen(shpfile->source)+strlen(MS_INDEX_EXTENSION)+1)) == NULL) { 1460 1461 /* deal with case where sourcename is of the form 'file.shp' */ 1462 sourcename = strdup(shpfile->source); 1463 s = strcasestr(sourcename, ".shp"); 1464 if( s ) *s = '\0'; 1465 1466 if((filename = (char *)malloc(strlen(sourcename)+strlen(MS_INDEX_EXTENSION)+1)) == NULL) { 1458 1467 msSetError(MS_MEMERR, NULL, "msSHPWhichShapes()"); 1459 1468 return(MS_FAILURE); 1460 1469 } 1461 sprintf(filename, "%s%s", s hpfile->source, MS_INDEX_EXTENSION);1470 sprintf(filename, "%s%s", sourcename, MS_INDEX_EXTENSION); 1462 1471 1463 1472 shpfile->status = msSearchDiskTree(filename, rect, debug); 1464 1473 free(filename); 1474 free(sourcename); 1465 1475 1466 1476 if(shpfile->status) /* index */
