PostGIS  3.0.6dev-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  * PostGIS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * PostGIS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  **********************************************************************
20  *
21  * Copyright 2012-2013 Oslandia <infos@oslandia.com>
22  *
23  **********************************************************************/
24 
25 #include "../liblwgeom/lwgeom_sfcgal.h"
26 
27 /* Conversion from GSERIALIZED* to SFCGAL::Geometry */
28 sfcgal_geometry_t *POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom);
29 
30 /* Conversion from GSERIALIZED* to SFCGAL::PreparedGeometry */
31 sfcgal_prepared_geometry_t *POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom);
32 
33 /* Conversion from SFCGAL::Geometry to GSERIALIZED */
34 GSERIALIZED *SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID);
35 
36 /* Conversion from SFCGAL::PreparedGeometry to GSERIALIZED */
37 GSERIALIZED *SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D);
38 
39 Datum sfcgal_intersects(PG_FUNCTION_ARGS);
40 Datum sfcgal_intersects3D(PG_FUNCTION_ARGS);
41 Datum sfcgal_intersection(PG_FUNCTION_ARGS);
42 Datum sfcgal_difference3D(PG_FUNCTION_ARGS);
43 Datum sfcgal_difference(PG_FUNCTION_ARGS);
44 Datum sfcgal_union3D(PG_FUNCTION_ARGS);
45 Datum sfcgal_union(PG_FUNCTION_ARGS);
46 Datum sfcgal_volume(PG_FUNCTION_ARGS);
47 Datum sfcgal_triangulate(PG_FUNCTION_ARGS);
48 Datum sfcgal_distance(PG_FUNCTION_ARGS);
49 Datum sfcgal_distance3D(PG_FUNCTION_ARGS);
50 Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
51 Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
52 
53 /* Initialize sfcgal with PostGIS error handlers */
54 void sfcgal_postgis_init(void);
Datum sfcgal_difference(PG_FUNCTION_ARGS)
Datum sfcgal_make_solid(PG_FUNCTION_ARGS)
Datum sfcgal_distance(PG_FUNCTION_ARGS)
Datum sfcgal_intersects3D(PG_FUNCTION_ARGS)
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
sfcgal_prepared_geometry_t * POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom)
Datum sfcgal_intersects(PG_FUNCTION_ARGS)
Datum sfcgal_triangulate(PG_FUNCTION_ARGS)
Datum sfcgal_is_solid(PG_FUNCTION_ARGS)
void sfcgal_postgis_init(void)
Datum sfcgal_difference3D(PG_FUNCTION_ARGS)
Datum sfcgal_intersection(PG_FUNCTION_ARGS)
Datum sfcgal_distance3D(PG_FUNCTION_ARGS)
Datum sfcgal_union(PG_FUNCTION_ARGS)
GSERIALIZED * SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D)
Datum sfcgal_volume(PG_FUNCTION_ARGS)
GSERIALIZED * SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID)
Datum sfcgal_union3D(PG_FUNCTION_ARGS)