Definition at line 195 of file lwcompound.c.
196{
197 int intersections = 0;
198
201
202 for (uint32_t j = 0; j < comp->
ngeoms; j++)
203 {
207 {
210 }
212 {
215 }
216 else
217 {
219 }
220 if (on_boundary)
222 }
223
224
225
226
227
229}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
LWGEOM * lwcompound_as_lwgeom(const LWCOMPOUND *obj)
LWCIRCSTRING * lwgeom_as_lwcircstring(const LWGEOM *lwgeom)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
#define LW_INSIDE
Constants for point-in-polygon return values.
int ptarray_raycast_intersections(const POINTARRAY *pa, const POINT2D *p, int *on_boundary)
int ptarrayarc_raycast_intersections(const POINTARRAY *pa, const POINT2D *p, int *on_boundary)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References CIRCSTRINGTYPE, LWCOMPOUND::geoms, LINETYPE, LW_BOUNDARY, LW_FALSE, LW_INSIDE, LW_OUTSIDE, lwcompound_as_lwgeom(), lwerror(), lwgeom_as_lwcircstring(), lwgeom_as_lwline(), lwgeom_is_empty(), lwtype_name(), LWCOMPOUND::ngeoms, LWLINE::points, LWCIRCSTRING::points, ptarray_raycast_intersections(), ptarrayarc_raycast_intersections(), and LWGEOM::type.
Referenced by lwgeom_contains_point().