Ticket #137: shortLong_doc.patch

File shortLong_doc.patch, 4.7 KB (added by nicklas, 3 years ago)

Documentation patch for shortestline and longestline

  • reference.xml

     
    97139713          <refsection> 
    97149714                <title>See Also</title> 
    97159715 
    9716                 <para><xref linkend="ST_DWithin"/>, <xref linkend="ST_Distance_Sphere"/>, <xref linkend="ST_Distance_Spheroid"/>, <xref linkend="ST_Max_Distance" /></para> 
     9716                <para><xref linkend="ST_DWithin"/>, <xref linkend="ST_Distance_Sphere"/>, <xref linkend="ST_Distance_Spheroid"/>, <xref linkend="ST_Max_Distance" /><xref linkend="ST_ShortestLine" /></para> 
    97179717          </refsection> 
    97189718        </refentry> 
    97199719 
     
    1051910519                <title>Description</title> 
    1052010520 
    1052110521                <para>Returns the 2-dimensional maximum cartesian distance between two linestrings in 
    10522                 projected units.</para> 
     10522                projected units. If g1 and g2 is the same geometry the function will return the distance between 
     10523                the two vertices most far from eachother in that geometry.</para> 
    1052310524 
    1052410525          </refsection> 
    1052510526 
    1052610527          <refsection> 
    1052710528                <title>Examples</title> 
    1052810529 
    10529                 <programlisting>--ALL EXAMPLES current throw NOT YET IMPLEMENTED</programlisting> 
     10530                <programlisting>postgis=# SELECT ST_Max_Distance('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry); 
     10531   st_max_distance 
     10532----------------- 
     10533 2 
     10534(1 row)</programlisting> 
    1053010535          </refsection> 
    1053110536 
    1053210537          <refsection> 
    1053310538                <title>See Also</title> 
    1053410539 
    10535                 <para><xref linkend="ST_Distance"/></para> 
     10540                <para><xref linkend="ST_Distance"/><xref linkend="ST_LongestLine"/></para> 
    1053610541          </refsection> 
    1053710542        </refentry> 
    1053810543 
     10544        <refentry id="ST_ShortestLine"> 
     10545          <refnamediv> 
     10546                <refname>ST_ShortestLine</refname> 
    1053910547 
     10548                <refpurpose>Returns the 2-dimensional shortest line between two geometries</refpurpose> 
     10549          </refnamediv> 
     10550 
     10551          <refsynopsisdiv> 
     10552                <funcsynopsis> 
     10553                  <funcprototype> 
     10554                        <funcdef>geometry <function>ST_ShortestLine</function></funcdef> 
     10555 
     10556                        <paramdef><type>geometry </type> 
     10557                        <parameter>g1</parameter></paramdef> 
     10558 
     10559                        <paramdef><type>geometry </type> 
     10560                        <parameter>g2</parameter></paramdef> 
     10561                  </funcprototype> 
     10562                </funcsynopsis> 
     10563          </refsynopsisdiv> 
     10564 
     10565          <refsection> 
     10566                <title>Description</title> 
     10567 
     10568                <para>Returns the 2-dimensional shortest line between two geometries. The function will 
     10569                only return the first shortest line if more than one, that the function finds. 
     10570                If g1 and g2 intersects in just one point the function will return a line with both start 
     10571                and end in that intersection-point. 
     10572                If g1 and g2 are intersecting with more than one point the function will return a line with start 
     10573                and end in the same point but it can be any of the intersecting points. 
     10574                The line returned will always start in g1 and end in g2. 
     10575                The length of the line this function returns will always be the same as st_distance returns for g1 and g2.               
     10576                </para> 
     10577 
     10578          </refsection> 
     10579 
     10580          <refsection> 
     10581                <title>Examples</title> 
     10582 
     10583                <programlisting>postgis=# SELECT astext(st_shortestline('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry));; 
     10584   st_shortestline 
     10585----------------- 
     10586 "LINESTRING(0 0,1 1)" 
     10587(1 row)</programlisting> 
     10588          </refsection> 
     10589 
     10590          <refsection> 
     10591                <title>See Also</title> 
     10592 
     10593                <para><xref linkend="ST_Distance"/><xref linkend="ST_ShortestLine"/></para> 
     10594          </refsection> 
     10595        </refentry> 
     10596 
     10597        <refentry id="ST_LongestLine"> 
     10598          <refnamediv> 
     10599                <refname>ST_LongestLine</refname> 
     10600 
     10601                <refpurpose>Returns the 2-dimensional longest line points of two geometries. 
     10602                The function will only return the first longest line if more than one, that the function finds. 
     10603                The line returned will always start in g1 and end in g2. 
     10604                The length of the line this function returns will always be the same as st_max_distance returns for g1 and g2.</refpurpose> 
     10605          </refnamediv> 
     10606 
     10607          <refsynopsisdiv> 
     10608                <funcsynopsis> 
     10609                  <funcprototype> 
     10610                        <funcdef>geometry <function>ST_LongestLine</function></funcdef> 
     10611 
     10612                        <paramdef><type>geometry </type> 
     10613                        <parameter>g1</parameter></paramdef> 
     10614 
     10615                        <paramdef><type>geometry </type> 
     10616                        <parameter>g2</parameter></paramdef> 
     10617                  </funcprototype> 
     10618                </funcsynopsis> 
     10619          </refsynopsisdiv> 
     10620 
     10621          <refsection> 
     10622                <title>Description</title> 
     10623 
     10624                <para>Returns the 2-dimensional longest line between the points of two geometries.  
     10625                </para> 
     10626 
     10627          </refsection> 
     10628 
     10629          <refsection> 
     10630                <title>Examples</title> 
     10631 
     10632                <programlisting>postgis=# SELECT astext(st_longestline('POINT(0 0)'::geometry, 'LINESTRING ( 2 0, 0 2 )'::geometry));; 
     10633   st_shortestline 
     10634----------------- 
     10635 "LINESTRING(0 0,2 0)" 
     10636(1 row)</programlisting> 
     10637          </refsection> 
     10638 
     10639          <refsection> 
     10640                <title>See Also</title> 
     10641 
     10642                <para><xref linkend="ST_Max_Distance"/><xref linkend="ST_ShortestLine"/></para> 
     10643          </refsection> 
     10644        </refentry> 
     10645 
     10646 
    1054010647        <refentry id="ST_OrderingEquals"> 
    1054110648          <refnamediv> 
    1054210649                <refname>ST_OrderingEquals</refname>