]> granicus.if.org Git - postgis/commitdiff
revise example so scales well on 200 x 200 grid
authorRegina Obe <lr@pcorp.us>
Fri, 11 Sep 2009 06:04:54 +0000 (06:04 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 11 Sep 2009 06:04:54 +0000 (06:04 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4478 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/image_src/st_linecrossingdirection01.wkt
doc/reference.xml

index bf9d2d5ad5047309a6e222b4bab0c7c00a8c811e..21b0d8e3bd06abee6d68a68d2d94cbd1b19e1591 100644 (file)
@@ -1,2 +1,2 @@
-Style1;GEOMETRYCOLLECTION(LINESTRING(49.55 194.88,49.85 194.24,50.25 194.31),POINT(49.55 194.88),POLYGON((50.25 194.24,50.24 194.38,50.36 194.32,50.25 194.24)))
-Style2;GEOMETRYCOLLECTION(LINESTRING(49.61 193.88,50.25 194.82),POINT(49.61 193.88),POLYGON((50.27 194.71,50.16 194.81,50.29 194.85,50.27 194.71)))
+Style2;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-thinline;GEOMETRYCOLLECTION(LINESTRING(171 154,20 140,71 74,161 53),POINT(171 154),POLYGON((153.15 48.12,156.12 60.85,161 53,153.15 48.12)) )
index 3ee885d0c0622a6325967283014521a02a26e1df..fc200f8e0e1dc557476e06a0b9308a3e2beea6d5 100644 (file)
@@ -9682,18 +9682,19 @@ WHERE ST_Crosses(roads.the_geom, highways.the_geom);</programlisting>
                                <imageobject>
                                  <imagedata fileref="images/st_linecrossingdirection01.png" />
                                </imageobject>
-                               <caption><para>Line 1 fat line, Line 2 thin line, point is start point,
+                               <caption><para>Line 1 fat line, Line 2 thin line, ball is start point,
                                        triangle are end points. Query below. </para></caption>
                          </mediaobject>
                        </informalfigure>
-         <programlisting>SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As linecrossleft , ST_LineCrossingDirection(foo.line2, foo.line1) As linecrossright
-FROM (SELECT ST_GeomFromText('LINESTRING (49.55 194.88, 49.85 194.24, 50.25 194.31)') As line1,
-ST_GeomFromText('LINESTRING (49.61 193.88, 50.25 194.82)') As line2) As foo;
-
- linecrossleft | linecrossright
----------------+----------------
-                       -1 |              1
+         <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(171 154,20 140,71 74,161 53)') As line2) As foo;
 
+ l1_cross_l2 | l2_cross_l1
+-------------+-------------
+                  3 |          -3
+</programlisting>
+<programlisting>
 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 &amp;&amp; s2.the_geom )
 WHERE ST_CrossingDirection(s1.the_geom, s2.the_geom) > 0;