PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches
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 */
28sfcgal_geometry_t *POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom);
29
30/* Conversion from GSERIALIZED* to SFCGAL::PreparedGeometry */
31sfcgal_prepared_geometry_t *POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom);
32
33/* Conversion from SFCGAL::Geometry to GSERIALIZED */
34GSERIALIZED *SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID);
35
36/* Conversion from SFCGAL::PreparedGeometry to GSERIALIZED */
37GSERIALIZED *SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D);
38
39Datum sfcgal_intersects(PG_FUNCTION_ARGS);
40Datum sfcgal_intersects3D(PG_FUNCTION_ARGS);
41Datum sfcgal_intersection(PG_FUNCTION_ARGS);
42Datum sfcgal_difference3D(PG_FUNCTION_ARGS);
43Datum sfcgal_difference(PG_FUNCTION_ARGS);
44Datum sfcgal_union3D(PG_FUNCTION_ARGS);
45Datum sfcgal_union(PG_FUNCTION_ARGS);
46Datum sfcgal_volume(PG_FUNCTION_ARGS);
47Datum sfcgal_triangulate(PG_FUNCTION_ARGS);
48Datum sfcgal_distance(PG_FUNCTION_ARGS);
49Datum sfcgal_distance3D(PG_FUNCTION_ARGS);
50Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
51Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
52
53/* Initialize sfcgal with PostGIS error handlers */
54void 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)
Datum sfcgal_intersects(PG_FUNCTION_ARGS)
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
sfcgal_prepared_geometry_t * POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom)
Datum sfcgal_triangulate(PG_FUNCTION_ARGS)
Datum sfcgal_is_solid(PG_FUNCTION_ARGS)
GSERIALIZED * SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID)
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)
Datum sfcgal_union3D(PG_FUNCTION_ARGS)