</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>
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);
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;
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();
}
#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();
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
}
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
);
------------------------------------------------------------------------