PostGIS  2.2.7dev-r@@SVN_REVISION@@
postgis/lwgeom_sfcgal.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * PostGIS - Spatial Types for PostgreSQL
4  * http://postgis.net
5  *
6  * Wrapper around SFCGAL for 3D functions
7  *
8  * Copyright 2012-2013 Oslandia <infos@oslandia.com>
9  *
10  * This is free software; you can redistribute and/or modify it under
11  * the terms of the GNU General Public Licence. See the COPYING file.
12  *
13  **********************************************************************/
14 
15 #include "../liblwgeom/lwgeom_sfcgal.h"
16 
17 /* Conversion from GSERIALIZED* to SFCGAL::Geometry */
18 sfcgal_geometry_t* POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom);
19 
20 /* Conversion from GSERIALIZED* to SFCGAL::PreparedGeometry */
21 sfcgal_prepared_geometry_t* POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom);
22 
23 /* Conversion from SFCGAL::Geometry to GSERIALIZED */
24 GSERIALIZED* SFCGALGeometry2POSTGIS( const sfcgal_geometry_t* geom, int force3D, int SRID );
25 
26 /* Conversion from SFCGAL::PreparedGeometry to GSERIALIZED */
27 GSERIALIZED* SFCGALPreparedGeometry2POSTGIS( const sfcgal_prepared_geometry_t* geom, int force3D );
28 
29 Datum sfcgal_intersects(PG_FUNCTION_ARGS);
30 Datum sfcgal_intersects3D(PG_FUNCTION_ARGS);
31 Datum sfcgal_intersection(PG_FUNCTION_ARGS);
32 Datum sfcgal_difference3D(PG_FUNCTION_ARGS);
33 Datum sfcgal_difference(PG_FUNCTION_ARGS);
34 Datum sfcgal_union3D(PG_FUNCTION_ARGS);
35 Datum sfcgal_union(PG_FUNCTION_ARGS);
36 Datum sfcgal_volume(PG_FUNCTION_ARGS);
37 Datum sfcgal_triangulate(PG_FUNCTION_ARGS);
38 Datum sfcgal_area(PG_FUNCTION_ARGS);
39 Datum sfcgal_distance(PG_FUNCTION_ARGS);
40 Datum sfcgal_distance3D(PG_FUNCTION_ARGS);
41 Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
42 Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
43 
44 
45 /* Initialize sfcgal with PostGIS error handlers */
46 void sfcgal_postgis_init(void);
GSERIALIZED * SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D)
Datum sfcgal_volume(PG_FUNCTION_ARGS)
Datum sfcgal_union3D(PG_FUNCTION_ARGS)
Datum sfcgal_is_solid(PG_FUNCTION_ARGS)
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
GSERIALIZED * SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int SRID)
Datum sfcgal_distance3D(PG_FUNCTION_ARGS)
Datum sfcgal_make_solid(PG_FUNCTION_ARGS)
Datum sfcgal_triangulate(PG_FUNCTION_ARGS)
Datum sfcgal_difference3D(PG_FUNCTION_ARGS)
Datum sfcgal_intersects3D(PG_FUNCTION_ARGS)
sfcgal_prepared_geometry_t * POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom)
Datum sfcgal_union(PG_FUNCTION_ARGS)
void sfcgal_postgis_init(void)
Datum sfcgal_intersects(PG_FUNCTION_ARGS)
Datum sfcgal_distance(PG_FUNCTION_ARGS)
Datum sfcgal_intersection(PG_FUNCTION_ARGS)
Datum sfcgal_area(PG_FUNCTION_ARGS)
Datum sfcgal_difference(PG_FUNCTION_ARGS)