From: Regina Obe Date: Thu, 26 Nov 2009 16:52:53 +0000 (+0000) Subject: change shortestline/longestline point/line example X-Git-Tag: 1.5.0b1~176 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f4e8fb8640ec365b49a95da0a68e37d547fe4d8;p=postgis change shortestline/longestline point/line example git-svn-id: http://svn.osgeo.org/postgis/trunk@4903 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/html/image_src/st_longestline01.wkt b/doc/html/image_src/st_longestline01.wkt index 23631b1b8..f7c523f6f 100644 --- a/doc/html/image_src/st_longestline01.wkt +++ b/doc/html/image_src/st_longestline01.wkt @@ -1,3 +1,3 @@ -Style2;POINT(100 150) +Style2;POINT(100 100) Style2-mediumline;LINESTRING (20 80, 98 190, 110 180, 50 75 ) -Style1-thinline;LINESTRING(100 150,20 80) +Style1-thinline;LINESTRING(100 100,98 190) diff --git a/doc/html/image_src/st_shortestline01.wkt b/doc/html/image_src/st_shortestline01.wkt index f9f5d0dbb..fd4a823b1 100644 --- a/doc/html/image_src/st_shortestline01.wkt +++ b/doc/html/image_src/st_shortestline01.wkt @@ -1,3 +1,3 @@ -Style2;POINT(100 150) +Style2;POINT(100 100) Style2-mediumline;LINESTRING (20 80, 98 190, 110 180, 50 75 ) -Style1-thinline;LINESTRING(100 150,94.6153846153846 153.076923076923) +Style1-thinline;LINESTRING(100 100,73.0769230769231 115.384615384615) diff --git a/doc/reference_measure.xml b/doc/reference_measure.xml index 6ec3f2e11..cbd2e6c8e 100644 --- a/doc/reference_measure.xml +++ b/doc/reference_measure.xml @@ -1440,13 +1440,14 @@ postgis=# SELECT ST_MaxDistance('POINT(0 0)'::geometry, 'LINESTRING ( 2 2, 2 2 ) SELECT ST_AsText( - ST_ShortestLine('POINT(100 150)'::geometry, + ST_ShortestLine('POINT(100 100)'::geometry, 'LINESTRING (20 80, 98 190, 110 180, 50 75 )'::geometry) ) As sline; + sline ----------------- -LINESTRING(100 150,94.6153846153846 153.076923076923) +LINESTRING(100 100,73.0769230769231 115.384615384615) @@ -1520,7 +1521,7 @@ SELECT ST_AsText( Examples - + @@ -1533,13 +1534,14 @@ SELECT ST_AsText( SELECT ST_AsText( - ST_LongestLine('POINT(100 150)'::geometry, + ST_LongestLine('POINT(100 100)'::geometry, 'LINESTRING (20 80, 98 190, 110 180, 50 75 )'::geometry) ) As lline; + lline ----------------- -LINESTRING(100 150,20 80) +LINESTRING(100 100,98 190) @@ -1554,7 +1556,31 @@ LINESTRING(100 150,20 80) SELECT ST_AsText( ST_LongestLine( - ST_GeomFromText('POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))'), + ST_GeomFromText('POLYGON((175 150, 20 40, + 50 60, 125 100, 175 150))'), + ST_Buffer(ST_GeomFromText('POINT(110 170)'), 20) + ) + ) As llinewkt; + + lline +----------------- +LINESTRING(20 40,121.111404660392 186.629392246051) + + + + + + + + + longest straight distance to travel within an area + + + +SELECT ST_AsText( + ST_LongestLine( + ST_GeomFromText('POLYGON((175 150, 20 40, + 50 60, 125 100, 175 150))'), ST_Buffer(ST_GeomFromText('POINT(110 170)'), 20) ) ) As llinewkt;