[postgis-devel] SFCGAL 1.1.0 support

Vincent Mora vincent.mora at oslandia.com
Wed Jan 21 10:15:14 PST 2015


Hi all,

We released SFCGAL 1.1.0 this week, and here is a patch to support it.

Spoiler: the new functions are ST_3DUnion, ST_3DDifference and ST_Volume 
(and an SFCGAL backend for ST_Union, ST_Difference).

This patch is not meant to be included as is, but to provide a base for 
discussion.  A summary of the modifications in the patch follows.

There are parts of the patch that are bug fixes and that do not depend 
on SFCGAL 1.1.0 and can be included right away.

The points that I'd most like feedback on are:
- do we need to support older versions of SFCGAL ?
- how to make a nice section in the doc explaining the backend mechanism ?

My two cents on the first question: there is no distro provided binaries 
of SFCGAL that I'm aware of, so, since you have to recompile SFCGAL, you 
may as well recompile the new shiny one rather than an old dusty one.

Thanks,

V.










Summary of the modifications in the patch (the parts specific to SFCGAL 
1.1.0 are tagged as such):


In liblwgeom/lwgeom_sfcgal.c
- fix bug for conversion of multisolid (caused extruded multypolygon to 
miss the solid flag)

In postgis/lwgeom_backend_api.c
- added backend switch for difference and union *SFCGAL 1.1.0*

In postgis/lwgeom_geos.h and postgis/lwgeom_geos.c
- changed the name of difference and union *SFCGAL 1.1.0*
- exposed those renamed functions *SFCGAL 1.1.0*

In postgis/lwgeom_sfcgal.c
- added difference, union, volume *SFCGAL 1.1.0*
- added makesolid and issolid

In postgis/sfcgal.sql.in
- added ST_3DDifference, ST_3DUnion and ST_Volume *SFCGAL 1.1.0*
- added ST_MakeSolid and ST_IsSolid

In regress/sfcgal/concave_hull.sql
- fixed test failure caused by insufficient tolerance *SFCGAL 1.1.0*

In regress/sfcgal/empty.sql, regress/sfcgal/empty_expected, 
regress/sfcgal/regress_ogc.sql and regress/sfcgal/regress_ogc_expected
- fixed test to avoid failure on equivalent representation of a polygon 
(different starting point for a ring) *SFCGAL 1.1.0*


-------------- next part --------------
A non-text attachment was scrubbed...
Name: sfcgal_1.1.0.patch
Type: text/x-patch
Size: 23139 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20150121/631f35dc/attachment.bin>


More information about the postgis-devel mailing list