[postgis-devel] LWGEOM2GEOS and empty

Paul Ramsey pramsey at cleverelephant.ca
Thu Feb 9 16:47:25 PST 2023


Sorry, here's a quick link
https://github.com/postgis/postgis/blob/master/liblwgeom/lwgeom_geos.c#L495

> On Feb 9, 2023, at 4:46 PM, Paul Ramsey <pramsey at cleverelephant.ca> wrote:
> 
> Really odd, just was reading the code to see where to put an inf test, and noticed:
> 
> There a case statement switchung on geomType, and it tests point and polygon for empty, and if empty calls the GEOS get empty ____ function immediately. But for linestring and collections it doesn't do that!
> 
> Anyone have any memory as to why we have this snaggletoothed pattern in this very old, venerable code?
> 
> P



More information about the postgis-devel mailing list