MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
postgis_funcs.h File Reference

Functions for geometry types corresponding to external PostGIS functions in order to bypass the function manager fmgr.c. More...

#include <geos_c.h>
#include <postgres.h>
#include <liblwgeom.h>
#include <meos.h>
#include <meos_geo.h>

Go to the source code of this file.

Functions

LWGEOMbox2d_to_lwgeom (GBOX *box, int32_t srid)
 Create a geometry from a BOX2D. More...
 
LWGEOMbox3d_to_lwgeom (BOX3D *box)
 Create a geometry from a BOX3D. More...
 
char * geo_as_wkt (const GSERIALIZED *gs, int precision, bool extended)
 Return the (Extended) Well-Known Text (EWKT or WKT) representation of a geometry/geography. More...
 
GSERIALIZEDgeog_serialize (LWGEOM *lwgeom)
 Utility method to call the serialization and then set the PgSQL varsize header appropriately with the serialized size. More...
 
GSERIALIZEDgeom_serialize (LWGEOM *lwgeom)
 Utility method to call the serialization and then set the PgSQL varsize header appropriately with the serialized size. More...
 
bool geom_spatialrel (const GSERIALIZED *gs1, const GSERIALIZED *gs2, spatialRel rel)
 Return true if two geometries satisfy a given spatial relationship, where the function called depend on the third argument. More...
 
GSERIALIZEDGEOS2POSTGIS (GEOSGeom geom, char want3d)
 Tranform a GEOS geometry to a PostGIS one. More...
 
LWGEOMlwgeom_line_interpolate_point (LWGEOM *geom, double fraction, int32_t srid, char repeat)
 Interpolate a point from a line. More...
 
GEOSGeometry * POSTGIS2GEOS (const GSERIALIZED *pglwgeom)
 Tranform a PostGIS geometry to a GEOS one. More...
 
GSERIALIZEDpostgis_valid_typmod (GSERIALIZED *gs, int32_t typmod)
 Check the consistency of the metadata to enforce in the typmod: SRID, type, and dimensionality. More...
 

Detailed Description

Functions for geometry types corresponding to external PostGIS functions in order to bypass the function manager fmgr.c.