]> granicus.if.org Git - postgis/commitdiff
MakePoly renamed to Polygonize
authorSandro Santilli <strk@keybit.net>
Wed, 27 Oct 2004 15:19:45 +0000 (15:19 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 27 Oct 2004 15:19:45 +0000 (15:19 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1055 b70326c6-7e19-0410-871a-916f4a2858ee

doc/postgis.xml
lwgeom/lwgeom_geos.c
lwgeom/lwpostgis.sql.in

index 2b0f53137a1fb3ab03280ba0b25a615cbd4af2b9..612bc98d0ac661026100340350b4c326e7d87e46 100644 (file)
@@ -3702,12 +3702,12 @@ FROM geometry_table;</literallayout>
                </varlistentry>
 
                <varlistentry>
-                 <term>MakePoly(geometry set)</term>
+                 <term>Polygonize(geometry set)</term>
 
                  <listitem>
                    <para>Aggregate. Creates a MultiPolygon from the costituent
-                   linework of a set of geometries. Only available when compiled
-                   agains GEOS >= 2.1.0.</para>
+                   linework of a set of geometries.
+                   Only available when compiled against GEOS >= 2.1.0.</para>
                  </listitem>
                </varlistentry>
 
index a566e6e530cf5a253b6627d5f6ca463c089b4f80..42bf02f0448a797642244f15a0e43f2adbc1553f 100644 (file)
@@ -34,7 +34,7 @@ Datum pointonsurface(PG_FUNCTION_ARGS);
 Datum GEOSnoop(PG_FUNCTION_ARGS);
 Datum postgis_geos_version(PG_FUNCTION_ARGS);
 Datum centroid(PG_FUNCTION_ARGS);
-Datum GEOS_makepoly_garray(PG_FUNCTION_ARGS);
+Datum GEOS_polygonize_garray(PG_FUNCTION_ARGS);
 
 
 
@@ -2242,8 +2242,8 @@ Datum GEOSnoop(PG_FUNCTION_ARGS)
        PG_RETURN_POINTER(result);
 }
 
-PG_FUNCTION_INFO_V1(GEOS_makepoly_garray);
-Datum GEOS_makepoly_garray(PG_FUNCTION_ARGS)
+PG_FUNCTION_INFO_V1(GEOS_polygonize_garray);
+Datum GEOS_polygonize_garray(PG_FUNCTION_ARGS)
 {
        Datum datum;
        ArrayType *array;
@@ -2270,7 +2270,7 @@ Datum GEOS_makepoly_garray(PG_FUNCTION_ARGS)
        nelems = ArrayGetNItems(ARR_NDIM(array), ARR_DIMS(array));
 
 #ifdef DEBUG
-       elog(NOTICE, "GEOS_makepoly_garray: number of elements: %d", nelems);
+       elog(NOTICE, "GEOS_polygonize_garray: number of elements: %d", nelems);
 #endif
 
        if ( nelems == 0 ) PG_RETURN_NULL();
@@ -2288,12 +2288,12 @@ Datum GEOS_makepoly_garray(PG_FUNCTION_ARGS)
        }
 
 #ifdef DEBUG
-       elog(NOTICE, "GEOS_makepoly_garray: invoking GEOSpolygonize");
+       elog(NOTICE, "GEOS_polygonize_garray: invoking GEOSpolygonize");
 #endif
 
        geos_result = GEOSpolygonize(vgeoms, nelems);
 #ifdef DEBUG
-       elog(NOTICE, "GEOS_makepoly_garray: GEOSpolygonize returned");
+       elog(NOTICE, "GEOS_polygonize_garray: GEOSpolygonize returned");
 #endif
        //pfree(vgeoms);
        if ( ! geos_result ) PG_RETURN_NULL();
@@ -2461,10 +2461,10 @@ Datum unite_garray(PG_FUNCTION_ARGS)
        PG_RETURN_NULL(); // never get here
 }
 
-PG_FUNCTION_INFO_V1(GEOS_makepoly_garray);
-Datum GEOS_makepoly_garray(PG_FUNCTION_ARGS)
+PG_FUNCTION_INFO_V1(GEOS_polygonize_garray);
+Datum GEOS_polygonize_garray(PG_FUNCTION_ARGS)
 {
-       elog(ERROR,"GEOS_makepoly_garray:: operation not implemented - compile PostGIS with GEOS support");
+       elog(ERROR,"GEOS_polygonize_garray:: operation not implemented - compile PostGIS with GEOS support");
        PG_RETURN_NULL(); // never get here
 }
 
index fb1835bf54a06b7367256b22964dde8ab79bb877..2963c4f479e4a605bed87f04e90163f9ab524c61 100644 (file)
@@ -1689,16 +1689,16 @@ CREATE AGGREGATE makeline (
        finalfunc = makeline_garray
        );
 
-CREATEFUNCTION makepoly_garray (geometry[])
+CREATEFUNCTION polygonize_garray (geometry[])
        RETURNS geometry
-       AS '@MODULE_FILENAME@', 'GEOS_makepoly_garray'
+       AS '@MODULE_FILENAME@', 'GEOS_polygonize_garray'
        LANGUAGE 'C';
 
-CREATE AGGREGATE makepoly (
+CREATE AGGREGATE polygonize (
        sfunc = geom_accum,
        basetype = geometry,
        stype = geometry[],
-       finalfunc = makepoly_garray
+       finalfunc = polygonize_garray
        );
 
 ------------------------------------------------------------------------