[postgis-tickets] r17588 - Add example using optional bounds
Paul Ramsey
pramsey at cleverelephant.ca
Wed Jul 10 02:34:40 PDT 2019
Author: pramsey
Date: 2019-07-10 14:34:40 -0700 (Wed, 10 Jul 2019)
New Revision: 17588
Modified:
trunk/doc/reference_constructor.xml
Log:
Add example using optional bounds
Modified: trunk/doc/reference_constructor.xml
===================================================================
--- trunk/doc/reference_constructor.xml 2019-07-10 20:44:52 UTC (rev 17587)
+++ trunk/doc/reference_constructor.xml 2019-07-10 21:34:40 UTC (rev 17588)
@@ -788,9 +788,15 @@
<title>Example: Building a tile envelope</title>
<programlisting>SELECT ST_AsText( ST_TileEnvelope(2, 1, 1) );
-st_astext
+ st_astext
------------------------------
-POLYGON((-10018754.1713945 0,-10018754.1713945 10018754.1713945,0 10018754.1713945,0 0,-10018754.1713945 0))
+ POLYGON((-10018754.1713945 0,-10018754.1713945 10018754.1713945,0 10018754.1713945,0 0,-10018754.1713945 0))
+
+SELECT ST_AsText( ST_TileEnvelope(3, 1, 1, ST_MakeEnvelope(-180, -90, 180, 90, 4326) ) );
+
+ st_astext
+------------------------------------------------------
+ POLYGON((-135 45,-135 67.5,-90 67.5,-90 45,-135 45))
</programlisting>
</refsection>
<refsection>
More information about the postgis-tickets
mailing list