Style2;POINT(100 50)
-Style2-mediumline;LINESTRING (10 80, 100 199 )
-Style1-thinline;LINESTRING(100 50,100 199)
+Style2-mediumline;LINESTRING (20 80, 98 190, 110 180, 50 75 )
+Style1-thinline;LINESTRING(100 150,20 80)
Style2;POINT(100 50)
-Style2-mediumline;LINESTRING (10 80, 100 199 )
-Style1-thinline;LINESTRING(100 50,28.3145411257356 104.21589326625)
+Style2-mediumline;LINESTRING (20 80, 98 190, 110 180, 50 75 )
+Style1-thinline;LINESTRING(100 150,94.6153846153846 153.076923076923)
<!-- Optionally add a "See Also" section -->
<refsection>
<title>See Also</title>
-<para><xref linkend="ST_Distance"/><xref linkend="ST_LongestLine"/></para>
+<para><xref linkend="ST_Distance"/>, <xref linkend="ST_LongestLine"/></para>
</refsection>
</refentry>
<imageobject>
<imagedata fileref="images/st_shortestline01.png" />
</imageobject>
- <caption><para>Shortest line between point and line</para></caption>
+ <caption><para>Shortest line between point and linestring</para></caption>
</mediaobject>
</informalfigure>
<programlisting>
SELECT ST_AsText(
- ST_ShortestLine('POINT(100 50)'::geometry,
- 'LINESTRING (10 80, 100 199 )'::geometry)
+ ST_ShortestLine('POINT(100 150)'::geometry,
+ 'LINESTRING (20 80, 98 190, 110 180, 50 75 )'::geometry)
) As sline;
sline
-----------------
-LINESTRING(100 50,28.3145411257356 104.21589326625)
+LINESTRING(100 150,94.6153846153846 153.076923076923)
</programlisting>
</para></entry>
</informalfigure>
<programlisting>
SELECT ST_AsText(
- ST_LongestLine('POINT(100 50)'::geometry,
- 'LINESTRING (10 80, 100 199 )'::geometry)
+ ST_LongestLine('POINT(100 150)'::geometry,
+ 'LINESTRING (20 80, 98 190, 110 180, 50 75 )'::geometry)
) As lline;
lline
-----------------
-LINESTRING(100 50,100 199)
+LINESTRING(100 150,20 80)
</programlisting>
</para></entry>