id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc 1050,Add GEOS spatial operations to liblwgeom,bnordgren,strk,"Enable ""spatial"" things with an LWGEOM object from C. Attached patch adds some functions like: {{{ LWGEOM *lwgeom_intersection(LWGEOM *geom1, LWGEOM *geom2) ; LWGEOM *lwgeom_difference(LWGEOM *geom1, LWGEOM *geom2) ; LWGEOM *lwgeom_symdifference(LWGEOM* geom1, LWGEOM* geom2) ; LWGEOM* lwgeom_union(LWGEOM *geom1, LWGEOM *geom2) ; }}} This is more or less a copy/paste from the intersection/difference/etc. functions which operate on PG_FUNCTION_ARGS. However, I had to move some things from ./postgis to ./liblwgeom : * GEOS2LWGEOM * LWGEOM2GEOS * ptarray_from_GEOSCoordSeq * ptarray_to_GEOSCoordSeq * lwgeom_geos_error * lwgeom_geos_errmsg * profile.h (copied, not moved, so it's in two places now) I very unimaginatively stuck with the name ""lwgeom_geos.c"" for the file, so there's two of this file: one in postgis and one in liblwgeom. Did basic cleanup on the functions copied, such that it now compiles without warnings (vars set but not used; converting elog(ERROR, ...) to lwerror() )... This is NOT TESTED. I'm putting this here early to get feedback before going nuts.",enhancement,closed,medium,PostGIS 2.0.0,postgis,master,fixed,,