]> granicus.if.org Git - postgis/commitdiff
Add NEWS entry and another example for ST_IsValidTrajectory
authorSandro Santilli <strk@keybit.net>
Thu, 28 May 2015 15:33:39 +0000 (15:33 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 28 May 2015 15:33:39 +0000 (15:33 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13571 b70326c6-7e19-0410-871a-916f4a2858ee

NEWS
doc/reference_temporal.xml

diff --git a/NEWS b/NEWS
index cd1318d5147c8d131703116fabfb2640b85512ef..765d0d5f92f6b2f514c645e3040e880e98d84ee6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ PostGIS 2.2.0
 
  * New Features *
 
+  - #3129, ST_IsValidTrajectory (Sandro Santilli / Boundless)
   - #3128, ST_ClosestPointOfApproach (Sandro Santilli / Boundless)
   - Canonical output for index key types
   - ST_SwapOrdinates (Sandro Santilli / Boundless)
index f664e5b9cf7c45175bf455d038d85afb16e4bd3e..865208643a9d7984e017ce808cf2cb41f9e1d0e5 100644 (file)
@@ -42,13 +42,19 @@ like <xref linkend="ST_ClosestPointOfApproach" />
                  <refsection>
                        <title>Examples</title>
 <programlisting>
+-- A valid trajectory
 SELECT ST_IsValidTrajectory(ST_MakeLine(
   ST_MakePointM(0,0,1),
   ST_MakePointM(0,1,2))
 );
+ t
+
+-- An invalid trajectory
+SELECT ST_IsValidTrajectory(ST_MakeLine(ST_MakePointM(0,0,1), ST_MakePointM(0,1,0)));
+NOTICE:  Measure of vertex 1 (0) not bigger than measure of vertex 0 (1)
  st_isvalidtrajectory
 ----------------------
- t
+ f
 </programlisting>
                  </refsection>