From bb53b72c00cce20320784c8ff987b1faa54959e3 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sat, 27 Feb 2016 08:05:34 +0000 Subject: [PATCH] use a new arg identifier winset for window functions. Update window functions to be flagged as taking input geometry winset Update templste.xml (to instruct how to flag window and aggregate functions) Update the comments generation to handle the new geometry winset type arg Closes #3474 Mark ST_ClusterWithin and ST_ClusterIntersecting as taking geometry set (so flagged as aggregates) Closes #3476 git-svn-id: http://svn.osgeo.org/postgis/trunk@14711 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/reference_measure.xml | 8 ++++---- doc/template.xml | 18 +++++++++++++++++- doc/xsl/postgis_aggs_mm.xml.xsl | 29 +++++++++++++++++++++++++++++ doc/xsl/postgis_comments.sql.xsl | 3 ++- 4 files changed, 52 insertions(+), 6 deletions(-) diff --git a/doc/reference_measure.xml b/doc/reference_measure.xml index d1dbf6d46..78aa03bd6 100644 --- a/doc/reference_measure.xml +++ b/doc/reference_measure.xml @@ -1062,7 +1062,7 @@ SELECT ST_AsText( integer ST_ClusterDBSCAN - geometry + geometry winset geom float8 @@ -1130,7 +1130,7 @@ GROUP BY cid; geometry[] ST_ClusterIntersecting - geometry g + geometry set g @@ -1187,7 +1187,7 @@ GEOMETRYCOLLECTION(LINESTRING(6 6,7 7)) integer ST_ClusterKMeans - geometry + geometry winset geom integer @@ -1235,7 +1235,7 @@ FROM parcels; geometry[] ST_ClusterWithin - geometry g + geometry set g float8 distance diff --git a/doc/template.xml b/doc/template.xml index 8f05ad5ec..56254df3a 100644 --- a/doc/template.xml +++ b/doc/template.xml @@ -14,7 +14,7 @@ geometry g2 - + boolean ST_MyMethod geometry g1 @@ -23,6 +23,22 @@ varchar myparam=the_default_value + + + + + geometry ST_MyMethod + geometry set g1 + + + + + + geometry ST_MyMethod + geometry winset g1 + diff --git a/doc/xsl/postgis_aggs_mm.xml.xsl b/doc/xsl/postgis_aggs_mm.xml.xsl index f43d65bd3..92f327527 100644 --- a/doc/xsl/postgis_aggs_mm.xml.xsl +++ b/doc/xsl/postgis_aggs_mm.xml.xsl @@ -44,6 +44,35 @@ + + + PostGIS Window Functions + The functions given below are spatial window functions provided with PostGIS that can be used just like any other sql window function such as row_numer(), lead(), lag(). All these require an SQL OVER() clause. + + + + + + + + + + + + + + + + + + + - + + + + + + PostGIS SQL-MM Compliant Functions diff --git a/doc/xsl/postgis_comments.sql.xsl b/doc/xsl/postgis_comments.sql.xsl index c0987a406..9921e33a7 100644 --- a/doc/xsl/postgis_comments.sql.xsl +++ b/doc/xsl/postgis_comments.sql.xsl @@ -37,10 +37,11 @@ COMMENT ON AGGREGATEFUNCTION ( -geometry, +geometrygeometrygeography, ) IS ' '; -- 2.40.0