From: Regina Obe Date: Fri, 11 Sep 2009 12:40:42 +0000 (+0000) Subject: incomplete finish later X-Git-Tag: 1.5.0b1~519 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bedfa8029904ed63d4dca6d47b9f048796592c5f;p=postgis incomplete finish later git-svn-id: http://svn.osgeo.org/postgis/trunk@4480 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/image_src/st_linecrossingdirection02.wkt b/doc/html/image_src/st_linecrossingdirection02.wkt new file mode 100644 index 000000000..c7f03eaa6 --- /dev/null +++ b/doc/html/image_src/st_linecrossingdirection02.wkt @@ -0,0 +1,3 @@ +Style2;LINESTRING(25 169,89 114,40 70,86 43) +Style2;GEOMETRYCOLLECTION(POINT(25 169),POLYGON((80.84 41.66,84.66 48.16,86 43,80.84 41.66)) ) +Style1-thinline;GEOMETRYCOLLECTION(LINESTRING(171 154, 20 140, 71 74, 2.99 90.16),POINT(171 154),POLYGON((153.15 48.12,156.12 60.85,161 53,153.15 48.12)) ) diff --git a/doc/reference.xml b/doc/reference.xml index fc200f8e0..b38996246 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -9686,15 +9686,30 @@ WHERE ST_Crosses(roads.the_geom, highways.the_geom); 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(171 154,20 140,71 74,161 53)') As line2) As foo; +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(171 154,20 140,71 74,161 53)') As line2 + ) As foo; l1_cross_l2 | l2_cross_l1 -------------+------------- 3 | -3 +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 (171 154, 20 140, 71 74, 2.99 90.16)') As line2 + ) As foo; + + l1_cross_l2 | l2_cross_l1 +-------------+------------- + 2 | -3 + + SELECT s1.gid, s2.gid, ST_LineCrossingDirection(s1.the_geom, s2.the_geom) FROM streets s1 CROSS JOIN streets s2 ON (s1.gid != s2.gid AND s1.the_geom && s2.the_geom ) WHERE ST_CrossingDirection(s1.the_geom, s2.the_geom) > 0;