It would have happened on malformed COMPOUNDCURVE (unlikely).
Hushes compiler warning.
git-svn-id: http://svn.osgeo.org/postgis/trunk@11387
b70326c6-7e19-0410-871a-
916f4a2858ee
{
/* Don't check closure while doing p-i-p test */
result = ptarray_contains_point_partial(lwline->points, pt, LW_FALSE, &winding_number);
- }
+ }
}
- else if ( lwgeom->type == CIRCSTRINGTYPE )
+ else
{
lwcirc = lwgeom_as_lwcircstring(lwgeom);
+ if ( ! lwcirc ) {
+ lwerror("Unexpected component of type %s in compound curve", lwtype_name(lwgeom->type));
+ return 0;
+ }
if ( comp->ngeoms == 1 )
{
return ptarrayarc_contains_point(lwcirc->points, pt);