]> granicus.if.org Git - postgis/commitdiff
Add more line crossings. change tab to 4 spaces
authorRegina Obe <lr@pcorp.us>
Sat, 12 Sep 2009 03:43:15 +0000 (03:43 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 12 Sep 2009 03:43:15 +0000 (03:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4492 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/image_src/Makefile.in
doc/html/image_src/st_linecrossingdirection03.wkt [new file with mode: 0644]
doc/html/image_src/st_linecrossingdirection04.wkt [new file with mode: 0644]
doc/reference.xml

index 80cb4d440113557324cfdab2070f16d93211cf5d..dcd052fa5f580906a3910f25fabea096c22898c8 100644 (file)
@@ -60,6 +60,8 @@ IMAGES= \
        ../images/st_isvalid08.png \
        ../images/st_linecrossingdirection01.png \
        ../images/st_linecrossingdirection02.png \
+       ../images/st_linecrossingdirection03.png \
+       ../images/st_linecrossingdirection04.png \
        ../images/st_line_interpolate_point01.png \
        ../images/st_line_substring01.png \
        ../images/st_minimumboundingcircle01.png \
diff --git a/doc/html/image_src/st_linecrossingdirection03.wkt b/doc/html/image_src/st_linecrossingdirection03.wkt
new file mode 100644 (file)
index 0000000..f6437bd
--- /dev/null
@@ -0,0 +1,2 @@
+Style2-mediumline;GEOMETRYCOLLECTION(LINESTRING(25 169,89 114,40 70,86 43), POINT(25 169),POLYGON((78.26 40.98,83.98 50.74,86 43,78.26 40.98)) )
+Style1-mediumline;GEOMETRYCOLLECTION(LINESTRING (20 140, 71 74, 161 53), POLYGON ((153.15 48.12, 156.12 60.85, 161 53, 153.15 48.12)))
diff --git a/doc/html/image_src/st_linecrossingdirection04.wkt b/doc/html/image_src/st_linecrossingdirection04.wkt
new file mode 100644 (file)
index 0000000..bedf03f
--- /dev/null
@@ -0,0 +1,2 @@
+Style2-mediumline;GEOMETRYCOLLECTION(LINESTRING(25 169,89 114,40 70,86 43), POINT(25 169), POLYGON((80.84 41.66,84.66 48.16,86 43,80.84 41.66)) )
+Style1-mediumline;GEOMETRYCOLLECTION(LINESTRING(2.99 90.16,71 74,20 140,171 154),POINT(2.99 90.16),POLYGON((159.33 163.69,171 154,161.31 142.33,159.33 163.69)) )
index 8852434c3c0d4fe2a3b5c0ce08c208926f39258a..b5186452dda40569e640a5ca518f66bccfe035b9 100644 (file)
@@ -9730,6 +9730,55 @@ FROM (SELECT
                        </para>
                </entry>
          </row>
+         <row>
+                               <entry><para><informalfigure>
+                                       <mediaobject>
+                                         <imageobject>
+                                               <imagedata fileref="images/st_linecrossingdirection03.png" />
+                                         </imageobject>
+                                         <caption><para>Line 1 (green), Line 2 ball is start point,
+                                       triangle are end points. Query below. </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
+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) As foo;
+
+ l1_cross_l2 | l2_cross_l1
+-------------+-------------
+                 -1 |          1
+                               </programlisting>
+                       </para>
+               </entry>
+
+               <entry>
+                       <para><informalfigure>
+                               <mediaobject>
+                                 <imageobject>
+                                       <imagedata fileref="images/st_linecrossingdirection04.png" />
+                                 </imageobject>
+                                 <caption><para>Line 1 (green), Line 2 ball is start point,
+                                               triangle are end points. Query below.</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
+FROM (SELECT
+       ST_GeomFromText('LINESTRING(25 169,89 114,40 70,86 43)') As line1,
+       ST_GeomFromText('LINESTRING(2.99 90.16,71 74,20 140,171 154)') As line2
+       ) As foo;
+
+ l1_cross_l2 | l2_cross_l1
+-------------+-------------
+                 -2 |          0
+                               </programlisting>
+                       </para>
+               </entry>
+         </row>
          </tbody>
        </tgroup>
 </informaltable>