From: Regina Obe Date: Thu, 6 Mar 2014 05:38:44 +0000 (+0000) Subject: #2661: st_astwkb_agg(geometry,int) needs code comment and violates naming convention... X-Git-Tag: 2.2.0rc1~1211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9f369d7efa3ab5507ae1364aa87824576abfcbd;p=postgis #2661: st_astwkb_agg(geometry,int) needs code comment and violates naming convention, also fixed minor issues with description git-svn-id: http://svn.osgeo.org/postgis/trunk@12293 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference_output.xml b/doc/reference_output.xml index 3f2e6996d..390666cfa 100644 --- a/doc/reference_output.xml +++ b/doc/reference_output.xml @@ -1196,25 +1196,25 @@ SELECT ST_AsTWKB('LINESTRING(1 1,5 5)'::geometry,0,1); See Also - , , , + , , , - + - ST_AsTWKB_agg + ST_AsTWKBAgg Aggregates the geometries and returns as TWKB - bytea ST_AsTWKB_agg + bytea ST_AsTWKBAgg geometry g1 integer decimaldigits - bytea ST_AsTWKB_agg + bytea ST_AsTWKBAgg geometry g1 integer decimaldigits int8 geometryID @@ -1234,18 +1234,18 @@ SELECT ST_AsTWKB('LINESTRING(1 1,5 5)'::geometry,0,1); - Availability: 2.2 + Availability: 2.2.0 Examples -SELECT ST_AsTWKB_agg(geom,0,id) FROM +SELECT ST_AsTWKBAgg(geom,0,id) FROM (SELECT 'LINESTRING(1 1,5 5)'::geometry geom, 1 AS id UNION ALL SELECT 'LINESTRING(6 5, 1 7)'::geometry AS geom, 2 AS id) foo; - st_astwkb_agg + st_astwkbagg ---------------------------------------------------------------------------- \x035602010202020808020202000904 @@ -1253,7 +1253,7 @@ SELECT 'LINESTRING(6 5, 1 7)'::geometry AS geom, 2 AS id) foo; See Also - , , , + , , , , diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in index de7203c39..97832734c 100644 --- a/postgis/postgis.sql.in +++ b/postgis/postgis.sql.in @@ -3365,29 +3365,32 @@ CREATE OR REPLACE FUNCTION pgis_geometry_makeline_finalfn(pgis_abs) LANGUAGE 'c'; --Availability: 2.2.0 - CREATE OR REPLACE FUNCTION pgis_twkb_accum_transfn(internal, geometry,int) RETURNS internal AS 'MODULE_PATHNAME' LANGUAGE c ; - + +-- Availability: 2.2.0 CREATE OR REPLACE FUNCTION pgis_twkb_accum_transfn(internal, geometry,int,int8) RETURNS internal AS 'MODULE_PATHNAME' LANGUAGE c ; +-- Availability: 2.2.0 CREATE OR REPLACE FUNCTION pgis_twkb_accum_finalfn(internal) RETURNS bytea AS 'MODULE_PATHNAME' LANGUAGE c ; -CREATE AGGREGATE st_astwkb_agg(geometry,int) ( +-- Availability: 2.2.0 +CREATE AGGREGATE st_astwkbagg(geometry,int) ( SFUNC=pgis_twkb_accum_transfn, STYPE=internal, FINALFUNC=pgis_twkb_accum_finalfn ); -CREATE AGGREGATE st_astwkb_agg(geometry,int,int8) ( +-- Availability: 2.2.0 +CREATE AGGREGATE st_astwkbagg(geometry,int,int8) ( SFUNC=pgis_twkb_accum_transfn, STYPE=internal, FINALFUNC=pgis_twkb_accum_finalfn