[postgis-tickets] r16653 - Fix return type doc for ST_PixelAsPoints, ST_PixelAsPolygons, and ST_PixelAsCentroids

Darafei komzpa at gmail.com
Sat Jul 21 06:03:25 PDT 2018


Author: komzpa
Date: 2018-07-21 06:03:25 -0700 (Sat, 21 Jul 2018)
New Revision: 16653

Modified:
   trunk/doc/reference_raster.xml
Log:
Fix return type doc for ST_PixelAsPoints, ST_PixelAsPolygons, and ST_PixelAsCentroids

Closes #2971


Modified: trunk/doc/reference_raster.xml
===================================================================
--- trunk/doc/reference_raster.xml	2018-07-21 12:22:57 UTC (rev 16652)
+++ trunk/doc/reference_raster.xml	2018-07-21 13:03:25 UTC (rev 16653)
@@ -4317,14 +4317,18 @@
 
 				<para>Returns the polygon geometry that bounds every pixel of a raster band along with the value (double precision), the X and the Y raster coordinates (integers) of each pixel.</para>
 
+				<para>
+					Return record format: <parameter>geom</parameter> <xref linkend="geometry" />, <parameter>val</parameter> double precision, <parameter>x</parameter> integer, <parameter>y</parameter> integers.
+				</para>
 				<note>
 					<para>
-						ST_PixelAsPolygons returns one polygon geometry for every pixel.  This is different than ST_DumpAsPolygons where each geometry represents one or more pixels with the same pixel value.
+						When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels whose values are not NODATA are returned as points.
 					</para>
 				</note>
+
 				<note>
 					<para>
-						When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as polygons.
+						ST_PixelAsPolygons returns one polygon geometry for every pixel.  This is different than ST_DumpAsPolygons where each geometry represents one or more pixels with the same pixel value.
 					</para>
 				</note>
 
@@ -4428,7 +4432,7 @@
 			<refsynopsisdiv>
 				<funcsynopsis>
 					<funcprototype>
-						<funcdef>geometry <function>ST_PixelAsPoints</function></funcdef>
+						<funcdef>setof record <function>ST_PixelAsPoints</function></funcdef>
 						<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
 						<paramdef choice="opt"><type>integer </type> <parameter>band=1</parameter></paramdef>
 						<paramdef choice="opt"><type>boolean </type> <parameter>exclude_nodata_value=TRUE</parameter></paramdef>
@@ -4441,9 +4445,13 @@
 				<para>
 					Returns a point geometry for each pixel of a raster band along with the value, the X and the Y raster coordinates of each pixel.  The coordinates of the point geometry are of the pixel's upper-left corner.
 				</para>
+
+				<para>
+					Return record format: <parameter>geom</parameter> <xref linkend="geometry" />, <parameter>val</parameter> double precision, <parameter>x</parameter> integer, <parameter>y</parameter> integers.
+				</para>
 				<note>
 					<para>
-						When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as points.
+						When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels whose values are not NODATA are returned as points.
 					</para>
 				</note>
 				<para>Availability: 2.1.0</para>
@@ -4558,7 +4566,7 @@
 			<refsynopsisdiv>
 				<funcsynopsis>
 					<funcprototype>
-						<funcdef>geometry <function>ST_PixelAsCentroids</function></funcdef>
+						<funcdef>setof record <function>ST_PixelAsCentroids</function></funcdef>
 						<paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
 						<paramdef choice="opt"><type>integer </type> <parameter>band=1</parameter></paramdef>
 						<paramdef choice="opt"><type>boolean </type> <parameter>exclude_nodata_value=TRUE</parameter></paramdef>
@@ -4571,11 +4579,15 @@
 				<para>
 					Returns the centroid (point geometry) for each pixel of a raster band along with the value, the X and the Y raster coordinates of each pixel.  The point geometry is the centroid of the area represented by a pixel.
 				</para>
+				<para>
+					Return record format: <parameter>geom</parameter> <xref linkend="geometry" />, <parameter>val</parameter> double precision, <parameter>x</parameter> integer, <parameter>y</parameter> integers.
+				</para>
 				<note>
 					<para>
-						When exclude_nodata_value = TRUE, only those pixels whose values are not NODATA are returned as points.
+						When <parameter>exclude_nodata_value</parameter> = TRUE, only those pixels whose values are not NODATA are returned as points.
 					</para>
 				</note>
+
 				<para>Availability: 2.1.0</para>
 				<para>Changed: 2.1.1 Changed behavior of exclude_nodata_value.</para>
 			</refsection>



More information about the postgis-tickets mailing list