]> granicus.if.org Git - postgis/commitdiff
Remove issue with json parsing
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 21:14:04 +0000 (21:14 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 6 Nov 2015 21:14:04 +0000 (21:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14364 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwin_geojson.c

index e645c23e0431a0224428e197ce33458cfdf05eeb..b605814af68210caedc7f56932c785c783836f19 100644 (file)
@@ -399,7 +399,7 @@ parse_geojson_multipolygon(json_object *geojson, int *hasz, int root_srid)
                                {
                                        json_object* points = json_object_array_get_idx( poObjPoly, j );
                                        
-                                       if( json_type_array == json_object_get_type( poObjPoly ) )
+                                       if( json_type_array == json_object_get_type( points ) )
                                        {
 
                                                POINTARRAY *pa = ptarray_construct_empty(1, 0, 1);