[mapserver-commits] r7261 - branches/branch-5-0/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jan 15 01:23:05 EST 2008


Author: sdlime
Date: 2008-01-15 01:23:05 -0500 (Tue, 15 Jan 2008)
New Revision: 7261

Modified:
   branches/branch-5-0/mapserver/mapshape.c
Log:
Added checks suggested by Tamas to allow 3D and measured shapefiles to work. (bug #2354)

Modified: branches/branch-5-0/mapserver/mapshape.c
===================================================================
--- branches/branch-5-0/mapserver/mapshape.c	2008-01-15 06:21:58 UTC (rev 7260)
+++ branches/branch-5-0/mapserver/mapshape.c	2008-01-15 06:23:05 UTC (rev 7261)
@@ -1289,7 +1289,7 @@
       return MS_FAILURE;
     } 
     
-    if( psSHP->nShapeType != SHP_POINT ) {
+    if( psSHP->nShapeType != SHP_POINT && psSHP->nShapeType != SHP_POINTZ && psSHP->nShapeType != SHP_POINTM) {
       fseek( psSHP->fpSHP, psSHP->panRecOffset[hEntity]+12, 0 );
       fread( padBounds, sizeof(double)*4, 1, psSHP->fpSHP );
 



More information about the mapserver-commits mailing list