Datum distance3d(PG_FUNCTION_ARGS);
Datum intersects3d_dwithin(PG_FUNCTION_ARGS);
-Datum postgis_sfcgal_version(PG_FUNCTION_ARGS);
struct lwgeom_backend_definition
functions should be MAXFLOAT which causes false as answer*/
PG_RETURN_BOOL(0.0 == mindist);
}
-
-
-PG_FUNCTION_INFO_V1(postgis_sfcgal_version);
-Datum postgis_sfcgal_version(PG_FUNCTION_ARGS)
-{
-#if HAVE_SFCGAL
- const char *ver = lwgeom_sfcgal_version();
- text *result = cstring2text(ver);
-#else
- text *result = NULL;
-#endif
- PG_RETURN_POINTER(result);
-}
#include "fmgr.h"
#include "../liblwgeom/liblwgeom.h"
+#include "lwgeom_pg.h"
#include "lwgeom_sfcgal.h"
+Datum postgis_sfcgal_version(PG_FUNCTION_ARGS);
Datum sfcgal_from_ewkt(PG_FUNCTION_ARGS);
Datum sfcgal_distance(PG_FUNCTION_ARGS);
PG_RETURN_POINTER(output);
}
+
+PG_FUNCTION_INFO_V1(postgis_sfcgal_version);
+Datum postgis_sfcgal_version(PG_FUNCTION_ARGS)
+{
+ const char *ver = lwgeom_sfcgal_version();
+ text *result = cstring2text(ver);
+ PG_RETURN_POINTER(result);
+}
+
AS 'MODULE_PATHNAME'
LANGUAGE 'c' IMMUTABLE;
-CREATE OR REPLACE FUNCTION postgis_sfcgal_version() RETURNS text
- AS 'MODULE_PATHNAME'
- LANGUAGE 'c' IMMUTABLE;
-
CREATE OR REPLACE FUNCTION postgis_svn_version() RETURNS text
AS 'MODULE_PATHNAME'
LANGUAGE 'c' IMMUTABLE;
-- We only care about testing PostGIS prototype here
-- Behaviour is already handled by SFCGAL own tests
+SELECT 'postgis_sfcgal_version', count(*) FROM (SELECT postgis_sfcgal_version()) AS f;
SELECT 'ST_Tesselate', ST_AsText(ST_Tesselate('GEOMETRYCOLLECTION(POINT(4 4),POLYGON((0 0,1 0,1 1,0 1,0 0)))'));
SELECT 'ST_3DArea', ST_3DArea('POLYGON((0 0 0,1 0 0,1 1 0,0 1 0,0 0 0))');
SELECT 'ST_Extrude_point', ST_AsText(ST_Extrude('POINT(0 0)', 1, 0, 0));
+postgis_sfcgal_version|1
ST_Tesselate|GEOMETRYCOLLECTION(POINT(4 4),TIN(((0 1,1 0,1 1,0 1)),((0 1,0 0,1 0,0 1))))
ST_3DArea|1
ST_Extrude_point|LINESTRING Z (0 0 0,1 0 0)