From a5e88fd47c377987f326a39ec2a7cf7381224fbb Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 27 Mar 2015 16:27:03 +0000 Subject: [PATCH] Fix z+ handling git-svn-id: http://svn.osgeo.org/postgis/trunk@13403 b70326c6-7e19-0410-871a-916f4a2858ee --- liblwgeom/lwin_geojson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.50.1