]> granicus.if.org Git - postgis/commitdiff
Fix z+ handling
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 27 Mar 2015 16:27:03 +0000 (16:27 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 27 Mar 2015 16:27:03 +0000 (16:27 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13403 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwin_geojson.c

index 9724a5e14bc1824a7b08652ba0fdb2b2890bd431..24321b5afa9b2096ddcfca06afd2ed0301365488 100644 (file)
@@ -109,7 +109,7 @@ parse_geojson_coord(json_object *poObj, int *hasz, POINTARRAY *pa)
                pt.y = json_object_get_double( poObjCoord );
                LWDEBUGF(3, "parse_geojson_coord pt.y = %f.", pt.y );
 
-               if( nSize < 2 ) /* should this be >= 3 ? */
+               if( nSize > 2 ) /* should this be >= 3 ? */
                {
                        // Read Z coordinate
                        poObjCoord = json_object_array_get_idx( poObj, 2 );