PostGIS  2.4.9dev-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 
26 #include "../liblwgeom/lwgeom_sfcgal.h"
27 
28 /* Conversion from GSERIALIZED* to SFCGAL::Geometry */
29 sfcgal_geometry_t* POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom);
30 
31 /* Conversion from GSERIALIZED* to SFCGAL::PreparedGeometry */
32 sfcgal_prepared_geometry_t* POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom);
33 
34 /* Conversion from SFCGAL::Geometry to GSERIALIZED */
35 GSERIALIZED* SFCGALGeometry2POSTGIS( const sfcgal_geometry_t* geom, int force3D, int SRID );
36 
37 /* Conversion from SFCGAL::PreparedGeometry to GSERIALIZED */
38 GSERIALIZED* SFCGALPreparedGeometry2POSTGIS( const sfcgal_prepared_geometry_t* geom, int force3D );
39 
40 Datum sfcgal_intersects(PG_FUNCTION_ARGS);
41 Datum sfcgal_intersects3D(PG_FUNCTION_ARGS);
42 Datum sfcgal_intersection(PG_FUNCTION_ARGS);
43 Datum sfcgal_difference3D(PG_FUNCTION_ARGS);
44 Datum sfcgal_difference(PG_FUNCTION_ARGS);
45 Datum sfcgal_union3D(PG_FUNCTION_ARGS);
46 Datum sfcgal_union(PG_FUNCTION_ARGS);
47 Datum sfcgal_volume(PG_FUNCTION_ARGS);
48 Datum sfcgal_triangulate(PG_FUNCTION_ARGS);
49 Datum sfcgal_area(PG_FUNCTION_ARGS);
50 Datum sfcgal_distance(PG_FUNCTION_ARGS);
51 Datum sfcgal_distance3D(PG_FUNCTION_ARGS);
52 Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
53 Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
54 
55 
56 /* Initialize sfcgal with PostGIS error handlers */
57 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)