]> granicus.if.org Git - postgis/commitdiff
Go back to old hasz behavior
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 26 Mar 2014 10:23:17 +0000 (10:23 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 26 Mar 2014 10:23:17 +0000 (10:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12363 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwin_geojson.c

index 78a8a3f56e394541448ccb1b7ddd6eb544a921aa..183c2c3f270f2bb96078cc7e4706e5c51938dc7b 100644 (file)
@@ -200,7 +200,7 @@ parse_geojson_polygon(json_object *geojson, int *hasz,  int root_srid)
 
        if ( ! nRings )
        {
-               return (LWGEOM *)lwpoly_construct_empty(root_srid, *hasz, 0);
+               return (LWGEOM *)lwpoly_construct_empty(root_srid, 0, 0);
        }
 
        ppa = (POINTARRAY**) lwalloc(sizeof(POINTARRAY*));
@@ -253,10 +253,11 @@ parse_geojson_multipoint(json_object *geojson, int *hasz,  int root_srid)
        }
 
        poObjPoints = findMemberByName( geojson, "coordinates" );
-       if ( ! poObjPoints ) {
+       if ( ! poObjPoints ) 
+       {
                geojson_lwerror("Unable to find 'coordinates' in GeoJSON string", 4);
-    return NULL;
-  }
+               return NULL;
+       }
 
        if( json_type_array == json_object_get_type( poObjPoints ) )
        {