From: Regina Obe Date: Sat, 12 Sep 2009 03:43:15 +0000 (+0000) Subject: Add more line crossings. change tab to 4 spaces X-Git-Tag: 1.5.0b1~516 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=224987ed74c6d63aea545a8693c5caafbb2a59c1;p=postgis Add more line crossings. change tab to 4 spaces git-svn-id: http://svn.osgeo.org/postgis/trunk@4492 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/image_src/Makefile.in b/doc/html/image_src/Makefile.in index 80cb4d440..dcd052fa5 100644 --- a/doc/html/image_src/Makefile.in +++ b/doc/html/image_src/Makefile.in @@ -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 index 000000000..f6437bdef --- /dev/null +++ b/doc/html/image_src/st_linecrossingdirection03.wkt @@ -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 index 000000000..bedf03fc3 --- /dev/null +++ b/doc/html/image_src/st_linecrossingdirection04.wkt @@ -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)) ) diff --git a/doc/reference.xml b/doc/reference.xml index 8852434c3..b5186452d 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -9730,6 +9730,55 @@ FROM (SELECT + + + + + + + Line 1 (green), Line 2 ball is start point, + triangle are end points. Query below. + + + +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 + + + + + + + + + + + Line 1 (green), Line 2 ball is start point, + triangle are end points. Query below. + + + +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 + + + +