a3410349dc
Closes #5143 Squashed commit of the following: commit 6dad8a00b11e5961c08ebc676f10bfbf25c8eff1 Author: Regina Obe <lr@pcorp.us> Date: Tue May 3 18:35:28 2022 -0400 Change tests to check for sfcgal version at compile time Fix docs, function signature and xml validaty commit 4ba5288a7dece6cb14a204c1206345c7cc9f491a Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Tue May 3 06:47:07 2022 +0200 fix tests commit 88b449750e6c5152741c16659771136747253ff8 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Tue May 3 06:32:26 2022 +0200 fix if postgis_sfcgal_version and fix build commit 6865e31dd9f078dd0e05a72efc3282c613b97fc9 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Tue May 3 06:18:22 2022 +0200 seperate alphashape test commit cefccb67156b4fc7d797a6ff199c76b2e8a74754 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Tue May 3 05:58:57 2022 +0200 fix the ifdef part and add a message error commit eb3801e92aa48f42edaa828f3f0fced44b118f32 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Tue May 3 05:58:29 2022 +0200 add informaiton aoubt SFCGAL > 1.4.1 commit e96550d4d89f7b8ddb4e09c7bd7845a37f3f7bb5 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Mon May 2 10:40:09 2022 +0200 fix doc commit 0b5e6a35b317b285b133ff8247c761da0e40d83e Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Mon May 2 09:44:49 2022 +0200 Use singular: AlphaShapes => AlphaShape commit 8e92c13cc0bb72760d467b35b4f4a409732bfb17 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Fri Mar 4 11:55:21 2022 +0100 Add SFCGAL optimal alpha shapes doc commit 734c430d337354143b1fe466f6e8bf1597c6e674 Author: Loïc Bartoletti <loic.bartoletti@oslandia.com> Date: Fri Mar 4 11:33:16 2022 +0100 Add SFCGAL alpha shapes
58 lines
2.3 KiB
C
58 lines
2.3 KiB
C
/**********************************************************************
|
|
*
|
|
* PostGIS - Spatial Types for PostgreSQL
|
|
* http://postgis.net
|
|
*
|
|
* PostGIS is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PostGIS is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PostGIS. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
**********************************************************************
|
|
*
|
|
* Copyright 2012-2013 Oslandia <infos@oslandia.com>
|
|
*
|
|
**********************************************************************/
|
|
|
|
#include "../liblwgeom/lwgeom_sfcgal.h"
|
|
|
|
/* Conversion from GSERIALIZED* to SFCGAL::Geometry */
|
|
sfcgal_geometry_t *POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom);
|
|
|
|
/* Conversion from GSERIALIZED* to SFCGAL::PreparedGeometry */
|
|
sfcgal_prepared_geometry_t *POSTGIS2SFCGALPreparedGeometry(GSERIALIZED *pglwgeom);
|
|
|
|
/* Conversion from SFCGAL::Geometry to GSERIALIZED */
|
|
GSERIALIZED *SFCGALGeometry2POSTGIS(const sfcgal_geometry_t *geom, int force3D, int32_t SRID);
|
|
|
|
/* Conversion from SFCGAL::PreparedGeometry to GSERIALIZED */
|
|
GSERIALIZED *SFCGALPreparedGeometry2POSTGIS(const sfcgal_prepared_geometry_t *geom, int force3D);
|
|
|
|
Datum sfcgal_intersects(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_intersects3D(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_intersection(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_difference3D(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_difference(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_union3D(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_union(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_volume(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_triangulate(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_distance(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_distance3D(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_make_solid(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_is_solid(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_convexhull3D(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_alphashape(PG_FUNCTION_ARGS);
|
|
Datum sfcgal_optimalalphashape(PG_FUNCTION_ARGS);
|
|
|
|
/* Initialize sfcgal with PostGIS error handlers */
|
|
void sfcgal_postgis_init(void);
|