[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-477-g98f05d524

git at osgeo.org git at osgeo.org
Thu Feb 3 14:09:19 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  98f05d524ca0b2a59d208ad1e643479ad8c48b37 (commit)
      from  4d970198baef0c027843dc6be9e3e85e0c8e4367 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 98f05d524ca0b2a59d208ad1e643479ad8c48b37
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu Feb 3 14:09:15 2022 -0800

    Fix doc ST_LIneCrossingDirection

diff --git a/doc/reference_relationship.xml b/doc/reference_relationship.xml
index 8bc310f08..19de153c7 100644
--- a/doc/reference_relationship.xml
+++ b/doc/reference_relationship.xml
@@ -967,7 +967,7 @@ t
   <refsection>
     <title>Description</title>
 
-    <para>Given 2 linestrings, returns an integer between -3 and 3
+    <para>Given two linestrings returns an integer between -3 and 3
       indicating what kind of crossing behavior exists between them.
       0 indicates no crossing.
       This is only supported for <varname>LINESTRING</varname>s.
@@ -998,11 +998,8 @@ t
       </itemizedlist>
     </para>
     <para>Availability: 1.4</para>
-    <!-- optionally mention that this function uses indexes if appropriate -->
-
   </refsection>
 
-
   <refsection>
     <title>Examples</title>
 
@@ -1014,20 +1011,20 @@ t
             <imageobject>
             <imagedata fileref="images/st_linecrossingdirection03.png" />
             </imageobject>
-            <caption><para>Blue: Line 1;  Green: Line 2</para></caption>
+            <caption><para>Blue: Line A;  Green: Line B</para></caption>
           </mediaobject>
           </informalfigure>
           <programlisting>
-SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As l1_cross_l2,
-       ST_LineCrossingDirection(foo.line2, foo.line1) As l2_cross_l1
+SELECT ST_LineCrossingDirection(lineA, lineB) As A_cross_B,
+       ST_LineCrossingDirection(lineB, lineA) As B_cross_A
 FROM (SELECT
-  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As line1,
-  ST_GeomFromText('LINESTRING (20 140, 71 74, 161 53)') As line2
+  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As lineA,
+  ST_GeomFromText('LINESTRING (20 140, 71 74, 161 53)') As lineB
   ) As foo;
 
- l1_cross_l2 | l2_cross_l1
--------------+-------------
-          -1 |          1
+ A_cross_B | B_cross_A
+-----------+-----------
+        -1 |         1
 </programlisting>
 
     <para><emphasis role="bold">Example:</emphasis>
@@ -1038,20 +1035,20 @@ FROM (SELECT
             <imageobject>
             <imagedata fileref="images/st_linecrossingdirection01.png" />
             </imageobject>
-            <caption><para>Blue: Line 1;  Green: Line 2</para></caption>
+            <caption><para>Blue: Line A;  Green: Line B</para></caption>
           </mediaobject>
           </informalfigure>
           <programlisting>
-SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As l1_cross_l2,
-       ST_LineCrossingDirection(foo.line2, foo.line1) As l2_cross_l1
+SELECT ST_LineCrossingDirection(lineA, lineB) As A_cross_B,
+       ST_LineCrossingDirection(lineB, lineA) As B_cross_A
 FROM (SELECT
- ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As line1,
- ST_GeomFromText('LINESTRING(171 154,20 140,71 74,161 53)') As line2
+ ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As lineA,
+ ST_GeomFromText('LINESTRING(171 154,20 140,71 74,161 53)') As lineB
   ) As foo;
 
- l1_cross_l2 | l2_cross_l1
--------------+-------------
-           3 |          -3
+ A_cross_B | B_cross_A
+-----------+-----------
+         3 |        -3
 </programlisting>
 
       <para><emphasis role="bold">Example:</emphasis>
@@ -1062,20 +1059,20 @@ FROM (SELECT
           <imageobject>
           <imagedata fileref="images/st_linecrossingdirection04.png" />
           </imageobject>
-            <caption><para>Blue: Line 1;  Green: Line 2</para></caption>
+            <caption><para>Blue: Line A;  Green: Line B</para></caption>
         </mediaobject>
         </informalfigure>
         <programlisting>
-SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As l1_cross_l2,
-       ST_LineCrossingDirection(foo.line2, foo.line1) As l2_cross_l1
+SELECT ST_LineCrossingDirection(lineA, lineB) As A_cross_B,
+       ST_LineCrossingDirection(lineB, lineA) As B_cross_A
 FROM (SELECT
-  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As line1,
-  ST_GeomFromText('LINESTRING(5 90, 71 74, 20 140, 171 154)') As line2
+  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As lineA,
+  ST_GeomFromText('LINESTRING(5 90, 71 74, 20 140, 171 154)') As lineB
   ) As foo;
 
- l1_cross_l2 | l2_cross_l1
--------------+-------------
-          -2 |          2
+ A_cross_B | B_cross_A
+-----------+-----------
+        -2 |         2
 </programlisting>
 
       <para><emphasis role="bold">Example:</emphasis>
@@ -1086,20 +1083,20 @@ FROM (SELECT
           <imageobject>
           <imagedata fileref="images/st_linecrossingdirection02.png" />
           </imageobject>
-            <caption><para>Blue: Line 1;  Green: Line 2</para></caption>
+            <caption><para>Blue: Line A;  Green: Line B</para></caption>
         </mediaobject>
         </informalfigure>
         <programlisting>
-SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As l1_cross_l2,
-       ST_LineCrossingDirection(foo.line2, foo.line1) As l2_cross_l1
+SELECT ST_LineCrossingDirection(lineA, lineB) As A_cross_B,
+       ST_LineCrossingDirection(lineB, lineA) As B_cross_A
 FROM (SELECT
-  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As line1,
-  ST_GeomFromText('LINESTRING (171 154, 20 140, 71 74, 2.99 90.16)') As line2
+  ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As lineA,
+  ST_GeomFromText('LINESTRING (171 154, 20 140, 71 74, 2.99 90.16)') As lineB
 ) As foo;
 
- l1_cross_l2 | l2_cross_l1
--------------+-------------
-           2 |          -2
+ A_cross_B | B_cross_A
+-----------+-----------
+         2 |        -2
 </programlisting>
 
 <programlisting>

-----------------------------------------------------------------------

Summary of changes:
 doc/reference_relationship.xml | 69 ++++++++++++++++++++----------------------
 1 file changed, 33 insertions(+), 36 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list