From: Sandro Santilli Date: Wed, 5 Nov 2003 18:25:08 +0000 (+0000) Subject: moved #ifdef USE_GEOS below prototypes, added NULL implementation of unite_garray X-Git-Tag: pgis_0_8_0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9cfeb9f33b93dddf3eaa0fac96aa8b9e2af02146;p=postgis 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 --- 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