[postgis-tickets] r14364 - Remove issue with json parsing

Paul Ramsey pramsey at cleverelephant.ca
Fri Nov 6 13:14:04 PST 2015


Author: pramsey
Date: 2015-11-06 13:14:04 -0800 (Fri, 06 Nov 2015)
New Revision: 14364

Modified:
   trunk/liblwgeom/lwin_geojson.c
Log:
Remove issue with json parsing


Modified: trunk/liblwgeom/lwin_geojson.c
===================================================================
--- trunk/liblwgeom/lwin_geojson.c	2015-11-06 17:57:59 UTC (rev 14363)
+++ trunk/liblwgeom/lwin_geojson.c	2015-11-06 21:14:04 UTC (rev 14364)
@@ -399,7 +399,7 @@
 				{
 					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);



More information about the postgis-tickets mailing list