Add NEWS entry and another example for ST_IsValidTrajectory

git-svn-id: http://svn.osgeo.org/postgis/trunk@13571 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2015-05-28 15:33:39 +00:00
parent 03c15d5644
commit 319f35da5f
2 changed files with 8 additions and 1 deletions

1
NEWS
View file

@ -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)

View 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>