Commit 70978458 authored by Mark Cave-Ayland's avatar Mark Cave-Ayland
Browse files

Further fix for #156, and also #167 it seems. Looks like I forgot to apply the...

Further fix for #156, and also #167 it seems. Looks like I forgot to apply the fix to the WKB routines aswell.


git-svn-id: http://svn.osgeo.org/postgis/trunk@4165 b70326c6-7e19-0410-871a-916f4a2858ee
parent 51901cb4
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -862,16 +862,12 @@ output_wkb_polygon_ring_collection(uchar* geom,outwkbfunc func)
		(first_point[1] != last_point[1])) &&
		(current_unparser_check_flags & PARSER_CHECK_CLOSURE)) 
	{
		lwfree(first_point);
		lwfree(last_point);
		LWGEOM_WKB_UNPARSER_ERROR(UNPARSER_ERROR_UNCLOSED);
	}

	/* Ensure that POLYGON has a minimum of 4 points */
	if ((current_unparser_check_flags & PARSER_CHECK_MINPOINTS) && orig_cnt < 4)
	{
		lwfree(first_point);
		lwfree(last_point);
		LWGEOM_WKB_UNPARSER_ERROR(UNPARSER_ERROR_MOREPOINTS);
	}