* Parser global check flags - a bitmap of flags that determine which checks the parser will perform
* (see liblwgeom.h for the related PARSER_CHECK constants)
*/
-int parser_check_flags;
+int unparser_check_flags;
/*---------------------------------------------------------- */
int cnt = read_int(&geom);
/* Ensure that LINESTRING has a minimum of 2 points */
- if ((parser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 2)
+ if ((unparser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 2)
lwerror("geometry requires more points");
if ( cnt == 0 ){
/* Check if they are the same... */
if (memcmp(&first_point, &last_point, sizeof(double) * dims) &&
- (parser_check_flags & PARSER_CHECK_CLOSURE))
+ (unparser_check_flags & PARSER_CHECK_CLOSURE))
lwerror("geometry contains non-closed rings");
}
int cnt = read_int(&geom);
/* Ensure that a CIRCULARSTRING has a minimum of 3 points */
- if ((parser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 3)
+ if ((unparser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 3)
lwerror("geometry requires more points");
/* Ensure that a CIRCULARSTRING has an odd number of points */
- if ((parser_check_flags & PARSER_CHECK_ODD) && cnt % 2 != 1)
+ if ((unparser_check_flags & PARSER_CHECK_ODD) && cnt % 2 != 1)
lwerror("geometry must have an odd number of points");
if ( cnt == 0 ){
return NULL;
/* Setup the inital parser flags */
- parser_check_flags = flags;
+ unparser_check_flags = flags;
local_malloc=alloc;
local_free=free;
LWDEBUGF(2, "output_wkb_line_collection: %d iterations loop", cnt);
/* Ensure that LINESTRING has a minimum of 2 points */
- if ((parser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 2)
+ if ((unparser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 2)
lwerror("geometry requires more points");
write_wkb_int(cnt);
/* Check if they are the same... */
if (memcmp(&first_point, &last_point, sizeof(double) * dims) &&
- (parser_check_flags & PARSER_CHECK_CLOSURE))
+ (unparser_check_flags & PARSER_CHECK_CLOSURE))
lwerror("geometry contains non-closed rings");
return geom;
LWDEBUGF(2, "output_wkb_curve_collection: %d iterations loop", cnt);
/* Ensure that a CIRCULARSTRING has a minimum of 3 points */
- if ((parser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 3)
+ if ((unparser_check_flags & PARSER_CHECK_MINPOINTS) && cnt < 3)
lwerror("geometry requires more points");
/* Ensure that a CIRCULARSTRING has an odd number of points */
- if ((parser_check_flags & PARSER_CHECK_ODD) && cnt % 2 != 1)
+ if ((unparser_check_flags & PARSER_CHECK_ODD) && cnt % 2 != 1)
lwerror("geometry must have an odd number of points");
write_wkb_int(cnt);
return NULL;
/* Setup the inital parser flags */
- parser_check_flags = flags;
+ unparser_check_flags = flags;
local_malloc=alloc;
local_free=free;
int point_in_ring(RTREE_NODE *root, POINT2D *point);
int point_in_ring_deprecated(POINTARRAY *pts, POINT2D *point);
int point_in_polygon(RTREE_NODE **root, int ringCount, LWPOINT *point);
+int point_in_multipolygon(RTREE_NODE **root, int polyCount, int ringCount, LWPOINT *point);
int point_in_polygon_deprecated(LWPOLY *polygon, LWPOINT *point);
int point_outside_polygon(RTREE_NODE **root, int ringCount, LWPOINT *point);
int point_outside_polygon_deprecated(LWPOLY *polygon, LWPOINT *point);