Ignore:
Timestamp:
May 4, 2010 10:19:27 AM (6 years ago)
Author:
robe
Message:

Provide example of ST_GeogFromText

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/doc/reference_constructor.xml

    r5074 r5613  
    120120                        <para>Returns a geography object from the  well-known text or extended well-known representation.  SRID 4326 is assumed. This
    121121                                is an alias for ST_GeographyFromText</para>
    122                         <!-- TODO: put in example -->
    123122                  </refsection>
     123                 
     124                  <refsection>
     125                        <title>Examples</title>
     126                        <programlisting>
     127--- converting lon lat coords to geography
     128ALTER TABLE sometable ADD COLUMN geog geography(POINT,4326);
     129UPDATE sometable SET geog = ST_GeogFromText('SRID=4326;POINT(' || lon || ' ' || lat || ')');           
     130                        </programlisting>
     131                 </refsection>
     132                 
    124133                  <refsection>
    125134                        <title>See Also</title>
Note: See TracChangeset for help on using the changeset viewer.