From: Paul Ramsey Date: Fri, 27 Mar 2015 16:27:03 +0000 (+0000) Subject: Fix z+ handling X-Git-Tag: 2.2.0rc1~565 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5e88fd47c377987f326a39ec2a7cf7381224fbb;p=postgis Fix z+ handling git-svn-id: http://svn.osgeo.org/postgis/trunk@13403 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwin_geojson.c b/liblwgeom/lwin_geojson.c index 9724a5e14..24321b5af 100644 --- a/liblwgeom/lwin_geojson.c +++ b/liblwgeom/lwin_geojson.c @@ -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 );