postgis/liblwgeom/lwgeom_geos.h
Sandro Santilli b58ad4f2bb Add support for auto-fix geom structure for GEOS conversions
Fixes ST_ClipByBox2D run with non-closed polygon rings in input (#2945)

git-svn-id: http://svn.osgeo.org/postgis/trunk@13018 b70326c6-7e19-0410-871a-916f4a2858ee
2014-10-01 12:35:58 +00:00

37 lines
1 KiB
C

/**********************************************************************
*
* PostGIS - Spatial Types for PostgreSQL
* http://postgis.net
*
* Copyright 2011 Sandro Santilli <strk@keybit.net>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU General Public Licence. See the COPYING file.
*
**********************************************************************/
/* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain
header guards to protect from multiple inclusion */
#ifndef GEOS_C_INCLUDED
#define GEOS_C_INCLUDED
#include "geos_c.h"
#endif
#include "liblwgeom.h"
/*
** Public prototypes for GEOS utility functions.
*/
LWGEOM *GEOS2LWGEOM(const GEOSGeometry *geom, char want3d);
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *g, int autofix);
GEOSGeometry * LWGEOM_GEOS_buildArea(const GEOSGeometry* geom_in);
POINTARRAY *ptarray_from_GEOSCoordSeq(const GEOSCoordSequence *cs, char want3d);
extern char lwgeom_geos_errmsg[];
extern void lwgeom_geos_error(const char *fmt, ...);