]> granicus.if.org Git - postgis/commitdiff
correct example
authorRegina Obe <lr@pcorp.us>
Wed, 10 Jun 2009 14:51:39 +0000 (14:51 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 10 Jun 2009 14:51:39 +0000 (14:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4164 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml

index 1507f0867d1f63f884f483b05f84a99ddc05e6e0..1b8667dbe48c7f108be8f95dc1c3a9b9e4b825da 100644 (file)
@@ -9662,7 +9662,7 @@ WHERE ST_Crosses(roads.the_geom, highways.the_geom);</programlisting>
        <refsection>
          <title>Examples</title>
   <!-- TODO: We really badly need diagrams here and more examples -->
-         <programlisting>SELECT ST_CrossingDirection(foo.line1, foo.line2) As linecrossleft , ST_CrossingDirection(foo.line2, foo.line1) As linecrossright
+         <programlisting>SELECT ST_LineCrossingDirection(foo.line1, foo.line2) As linecrossleft , ST_CrossingDirection(foo.line2, foo.line1) As linecrossright
 FROM (SELECT ST_GeomFromText('LINESTRING(744589 2923929,744521 2923861)') As line1,
 ST_GeomFromText('LINESTRING(744753 2924117,744563 2923902)') As line2) As foo;
 
@@ -9670,7 +9670,7 @@ ST_GeomFromText('LINESTRING(744753 2924117,744563 2923902)') As line2) As foo;
 ---------------+----------------
                        -1 |              1
 
-SELECT s1.gid, s2.gid, ST_CrossingDirection(s1.the_geom, s2.the_geom)
+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;
 </programlisting>