[postgis-tickets] [PostGIS] #2254: Add SFCGAL support

PostGIS trac at osgeo.org
Wed Mar 27 09:00:59 PDT 2013


#2254: Add SFCGAL support
--------------------------+-------------------------------------------------
 Reporter:  colivier      |       Owner:  colivier     
     Type:  enhancement   |      Status:  new          
 Priority:  medium        |   Milestone:  PostGIS 2.1.0
Component:  postgis       |     Version:  trunk        
 Keywords:  CGAL, SFCGAL  |  
--------------------------+-------------------------------------------------
 From a dev point of view:

  - PostGIS side, the (SF)CGAL stuff is very thin, cf patch attached.
    (As clever part of the 3d stuff, are located in CGAL and SFCGAL.)

  - We bring some cunit test (quite the same than GEOS ones)
    and pass them (valgrind clean also)

  - For all CGAL functions who should behave the same in 2D than GEOS ones
    We pass all PostGIS regress tests, except few of them, where tests
 themself
    are not so well designed cf: <https://github.com/Oslandia/postgis-
 sfcgal/blob/master/bench/postgis_regress_delta.txt>

   We plan to propose further solutions to enhance this.



 For a user point of view:

 - All SFCGAL functions are located in sfcgal schema

 - SFCGAL functions provided, some are the same than GEOS ones,
   and obviously some are brand news:

    sfcgal.ST_GeomFromEWKT(text)
    sfcgal.ST_Intersects(geometry, geometry)
    sfcgal.ST_3DIntersects(geometry, geometry)
    sfcgal.ST_Intersection(geometry, geometry)
    sfcgal.ST_3DIntersection(geometry, geometry)
    sfcgal.ST_DelaunayTriangles(geometry)
    sfcgal.ST_Area(geometry)
    sfcgal.ST_Distance(geometry, geometry)
    sfcgal.ST_3DDistance(geometry, geometry)
    sfcgal.ST_MakeSolid(geometry)
    sfcgal.ST_Tesselate(geometry)
    sfcgal.ST_3DArea(geometry)
    sfcgal.ST_HasPlane(geometry)
    sfcgal.ST_Extrude(geometry, float8, float8, float8)
    sfcgal.ST_ForceLHR(geometry)
    sfcgal.ST_Orientation(geometry)
    sfcgal.ST_Minkowski(geometry, geometry)
    sfcgal.ST_Offset(geometry, float8, int4)
    sfcgal.ST_StraightSkeleton(geometry)
    sfcgal.ST_Round(geometry, int4)

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2254>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list