]> granicus.if.org Git - postgis/commitdiff
ST_AsMVT and ST_AsGeobuf doc fixes and improvements
authorBjörn Harrtell <bjorn@wololo.org>
Sat, 9 Sep 2017 08:38:58 +0000 (08:38 +0000)
committerBjörn Harrtell <bjorn@wololo.org>
Sat, 9 Sep 2017 08:38:58 +0000 (08:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15672 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_output.xml

index 1e349e1bfc67fdce619c46d09d2c251050b5438f..1081db99936b849312aa28be8778bdf319ba4a7d 100644 (file)
@@ -1329,16 +1329,16 @@ SELECT ST_GeoHash(ST_SetSRID(ST_MakePoint(-126,48),4326),5);
                        Note that Geobuf in its current form cannot be streamed so the full output will be assembled in memory.
                </para>
 
-               <para><varname>geom_name</varname> is the name of the geometry column in the row data. If NULL it will default to the first found geometry column.</para>
                <para><varname>row</varname> row data with at least a geometry column.</para>
+               <para><varname>geom_name</varname> is the name of the geometry column in the row data. If NULL it will default to the first found geometry column.</para>
 
                <para>Availability: 2.4.0</para>
          </refsection>
 
          <refsection>
                <title>Examples</title>
-               <programlisting><![CDATA[encode(ST_AsGeobuf('geom', q), 'base64')
-    FROM (SELECT ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))') as geom) AS q;
+               <programlisting><![CDATA[SELECT encode(ST_AsGeobuf(q, 'geom'), 'base64')
+    FROM (SELECT ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))') AS geom) AS q;
  st_asgeobuf
 ----------------------------------
  GAAiEAoOCgwIBBoIAAAAAgIAAAE=
@@ -1456,7 +1456,7 @@ SELECT ST_GeoHash(ST_SetSRID(ST_MakePoint(-126,48),4326),5);
 
          <refsection>
                <title>Examples</title>
-               <programlisting><![CDATA[SELECT ST_AsMVT('test', 4096, 'geom', q) FROM (SELECT 1 AS c1,
+               <programlisting><![CDATA[SELECT ST_AsMVT(q, 'test', 4096, 'geom') FROM (SELECT 1 AS c1,
     ST_AsMVTGeom(ST_GeomFromText('POLYGON ((35 10, 45 45, 15 40, 10 20, 35 10), (20 30, 35 35, 30 20, 20 30))'),
     ST_MakeBox2D(ST_Point(0, 0), ST_Point(4096, 4096)), 4096, 0, false) AS geom) AS q;
                               st_asmvt