PostGIS  2.1.10dev-r@@SVN_REVISION@@
postgis/lwgeom_geos.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * PostGIS - Spatial Types for PostgreSQL
4  * http://postgis.net
5  *
6  * Copyright 2008 Paul Ramsey <pramsey@cleverelephant.ca>
7  *
8  * This is free software; you can redistribute and/or modify it under
9  * the terms of the GNU General Public Licence. See the COPYING file.
10  *
11  **********************************************************************/
12 
13 #ifndef LWGEOM_GEOS_H_
14 #define LWGEOM_GEOS_H_ 1
15 
16 #include "../liblwgeom/lwgeom_geos.h" /* for GEOSGeom */
17 #include "liblwgeom.h" /* for GSERIALIZED */
18 
19 /*
20 ** Public prototypes for GEOS utility functions.
21 */
22 
23 GSERIALIZED *GEOS2POSTGIS(GEOSGeom geom, char want3d);
24 GEOSGeometry * POSTGIS2GEOS(GSERIALIZED *g);
25 
26 Datum geos_intersects(PG_FUNCTION_ARGS);
27 Datum geos_intersection(PG_FUNCTION_ARGS);
28 Datum LWGEOM_area_polygon(PG_FUNCTION_ARGS);
29 Datum LWGEOM_mindistance2d(PG_FUNCTION_ARGS);
30 Datum LWGEOM_mindistance3d(PG_FUNCTION_ARGS);
31 
33 
34 #endif /* LWGEOM_GEOS_H_ */
GEOSGeometry * POSTGIS2GEOS(GSERIALIZED *g)
Datum LWGEOM_mindistance2d(PG_FUNCTION_ARGS)
const GEOSGeometry * geom
Datum LWGEOM_mindistance3d(PG_FUNCTION_ARGS)
Datum LWGEOM_area_polygon(PG_FUNCTION_ARGS)
Datum geos_intersects(PG_FUNCTION_ARGS)
GSERIALIZED * GEOS2POSTGIS(GEOSGeom geom, char want3d)
Datum geos_intersection(PG_FUNCTION_ARGS)
This library is the generic geometry handling section of PostGIS.
void errorIfGeometryCollection(GSERIALIZED *g1, GSERIALIZED *g2)
Throws an ereport ERROR if either geometry is a COLLECTIONTYPE.