From 9cfeb9f33b93dddf3eaa0fac96aa8b9e2af02146 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 5 Nov 2003 18:25:08 +0000 Subject: [PATCH] moved #ifdef USE_GEOS below prototypes, added NULL implementation of unite_garray git-svn-id: http://svn.osgeo.org/postgis/trunk@351 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis_geos.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/postgis_geos.c b/postgis_geos.c index 913481c7a..e47b92ab0 100644 --- a/postgis_geos.c +++ b/postgis_geos.c @@ -10,6 +10,9 @@ * ********************************************************************** * $Log$ + * Revision 1.23 2003/11/05 18:25:08 strk + * moved #ifdef USE_GEOS below prototypes, added NULL implementation of unite_garray + * * Revision 1.22 2003/11/05 18:02:41 strk * renamed unite_finalfunc to unite_garray * @@ -95,7 +98,6 @@ //-------------------------------------------------------------------------- // //#define DEBUG -#ifdef USE_GEOS #include "postgres.h" @@ -222,6 +224,8 @@ POLYGON3D *PolyFromGeometry(Geometry *g, int *size); LINE3D *LineFromGeometry(Geometry *g, int *size); void NOTICE_MESSAGE(char *msg); +#ifdef USE_GEOS + //----------------------------------------------- // return a GEOS Geometry from a POSTGIS GEOMETRY //---------------------------------------------- @@ -1864,5 +1868,12 @@ Datum pointonsurface(PG_FUNCTION_ARGS) PG_RETURN_NULL(); // never get here } +PG_FUNCTION_INFO_V1(unite_garray); +Datum unite_garray(PG_FUNCTION_ARGS) +{ + elog(ERROR,"unite_garray:: operation not implemented - compile PostGIS with GEOS support"); + PG_RETURN_NULL(); // never get here +} + #endif -- 2.50.1