From: Paul Ramsey Date: Wed, 26 Mar 2014 10:23:17 +0000 (+0000) Subject: Go back to old hasz behavior X-Git-Tag: 2.2.0rc1~1174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b0ecfd1471ddc7438342730115afdfbf916ae86;p=postgis Go back to old hasz behavior git-svn-id: http://svn.osgeo.org/postgis/trunk@12363 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwin_geojson.c b/liblwgeom/lwin_geojson.c index 78a8a3f56..183c2c3f2 100644 --- a/liblwgeom/lwin_geojson.c +++ b/liblwgeom/lwin_geojson.c @@ -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 ) ) {