]> granicus.if.org Git - postgis/commitdiff
moved #ifdef USE_GEOS below prototypes, added NULL implementation of unite_garray
authorSandro Santilli <strk@keybit.net>
Wed, 5 Nov 2003 18:25:08 +0000 (18:25 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 5 Nov 2003 18:25:08 +0000 (18:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@351 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_geos.c

index 913481c7a11f760fa4400e5583e6f8b7df9acc1c..e47b92ab09530ef79ebbc57c04663daa4affd709 100644 (file)
@@ -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