PostGIS  2.2.7dev-r@@SVN_REVISION@@
liblwgeom/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 2011 Sandro Santilli <strk@keybit.net>
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 /* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain
14  header guards to protect from multiple inclusion */
15 #ifndef GEOS_C_INCLUDED
16 #define GEOS_C_INCLUDED
17 #include "geos_c.h"
18 #endif
19 
20 #include "liblwgeom.h"
21 
22 
23 /*
24 ** Public prototypes for GEOS utility functions.
25 */
26 LWGEOM *GEOS2LWGEOM(const GEOSGeometry *geom, char want3d);
27 GEOSGeometry * LWGEOM2GEOS(const LWGEOM *g, int autofix);
28 GEOSGeometry * GBOX2GEOS(const GBOX *g);
29 GEOSGeometry * LWGEOM_GEOS_buildArea(const GEOSGeometry* geom_in);
30 
31 int cluster_intersecting(GEOSGeometry** geoms, uint32_t num_geoms, GEOSGeometry*** clusterGeoms, uint32_t* num_clusters);
32 int cluster_within_distance(LWGEOM** geoms, uint32_t num_geoms, double tolerance, LWGEOM*** clusterGeoms, uint32_t* num_clusters);
33 
34 POINTARRAY *ptarray_from_GEOSCoordSeq(const GEOSCoordSequence *cs, char want3d);
35 
36 
37 extern char lwgeom_geos_errmsg[];
38 extern void lwgeom_geos_error(const char *fmt, ...);
39 
int cluster_intersecting(GEOSGeometry **geoms, uint32_t num_geoms, GEOSGeometry ***clusterGeoms, uint32_t *num_clusters)
Takes an array of GEOSGeometry* and constructs an array of GEOSGeometry*, where each element in the c...
char lwgeom_geos_errmsg[]
tuple fmt
Definition: pixval.py:92
int cluster_within_distance(LWGEOM **geoms, uint32_t num_geoms, double tolerance, LWGEOM ***clusterGeoms, uint32_t *num_clusters)
Takes an array of LWGEOM* and constructs an array of LWGEOM*, where each element in the constructed a...
GEOSGeometry * GBOX2GEOS(const GBOX *g)
void lwgeom_geos_error(const char *fmt,...)
const GEOSGeometry * geom
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *g, int autofix)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, char want3d)
POINTARRAY * ptarray_from_GEOSCoordSeq(const GEOSCoordSequence *cs, char want3d)
This library is the generic geometry handling section of PostGIS.
GEOSGeometry * LWGEOM_GEOS_buildArea(const GEOSGeometry *geom_in)