[mapserver-commits] r7260 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jan 15 01:21:58 EST 2008


Author: sdlime
Date: 2008-01-15 01:21:58 -0500 (Tue, 15 Jan 2008)
New Revision: 7260

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

Modified: trunk/mapserver/mapshape.c
===================================================================
--- trunk/mapserver/mapshape.c	2008-01-15 06:14:29 UTC (rev 7259)
+++ trunk/mapserver/mapshape.c	2008-01-15 06:21:58 UTC (rev 7260)
@@ -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