From: David Blasby Date: Thu, 16 Oct 2003 20:16:18 +0000 (+0000) Subject: Added NOTICE_HANDLER function. For some reason this didnt get properly X-Git-Tag: pgis_0_8_0~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df257e99185841c4e615e08bf541ad5f6b69c813;p=postgis Added NOTICE_HANDLER function. For some reason this didnt get properly committed last time. git-svn-id: http://svn.osgeo.org/postgis/trunk@312 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_geos.c b/postgis_geos.c index f8e85dc45..723e692a8 100644 --- a/postgis_geos.c +++ b/postgis_geos.c @@ -10,6 +10,10 @@ * ********************************************************************** * $Log$ + * Revision 1.12 2003/10/16 20:16:18 dblasby + * Added NOTICE_HANDLER function. For some reason this didnt get properly + * committed last time. + * * Revision 1.11 2003/10/14 23:19:19 dblasby * GEOS2POSTGIS - added protection to pfree(NULL) for multi* geoms * @@ -176,13 +180,22 @@ GEOMETRY *GEOS2POSTGIS(Geometry *g, char want3d ); POLYGON3D *PolyFromGeometry(Geometry *g, int *size); LINE3D *LineFromGeometry(Geometry *g, int *size); - +void NOTICE_MESSAGE(char *msg); //----------------------------------------------- // return a GEOS Geometry from a POSTGIS GEOMETRY //---------------------------------------------- + + +void NOTICE_MESSAGE(char *msg) +{ + elog(NOTICE,msg); +} + + + //select geomunion('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))','POLYGON((5 5, 15 5, 15 7, 5 7, 5 5))'); PG_FUNCTION_INFO_V1(geomunion); Datum geomunion(PG_FUNCTION_ARGS)