[postgis-devel] force_sfs

Oliver Courtin olivier.courtin at oslandia.com
Thu May 9 12:51:15 PDT 2013


Hi all,

Related to SFCGAL implementation (#2254)
i had to add an extra PostGIS function, 
to allow using only geometry types that GEOS is able to handle.

So something like a curve_to_line with in more, theses conversions:
 - TIN -> MULTIPOLYGON
 - TRIANGLE -> POLYGON
 - POLYHEDRALSURFACE -> MULTIPOLYGON

Dimensions are kept unchanged 


Right now i've called it ST_force_sfs

Do you have an opinion on such a thing
(about naming or prototype or behavior ?)



Behaviour:
liblwgeom/cunit/cu_force_sfs,c 

Prototype:
CREATE OR REPLACE FUNCTION ST_force_sfs(geometry) RETURNS geometry



O.



More information about the postgis-devel mailing list