~ubuntu-branches/ubuntu/oneiric/postgis/oneiric-proposed

« back to all changes in this revision

Viewing changes to doc/reference_constructor.xml

  • Committer: Bazaar Package Importer
  • Author(s): Alan Boudreault
  • Date: 2010-09-29 09:16:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20100929091610-vj4efw8woq34hdn7
Tags: 1.5.2-1
* New upstream release, with a few bug fixes.
* Added shp2pgsql-gui binary.
* Removed patches, applied upstream: getopt.    

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
                        <title>Description</title>
120
120
                        <para>Returns a geography object from the  well-known text or extended well-known representation.  SRID 4326 is assumed. This
121
121
                                is an alias for ST_GeographyFromText</para>
122
 
                        <!-- TODO: put in example -->
123
122
                  </refsection>
 
123
                  
 
124
                  <refsection>
 
125
                        <title>Examples</title>
 
126
                        <programlisting>
 
127
--- converting lon lat coords to geography
 
128
ALTER TABLE sometable ADD COLUMN geog geography(POINT,4326);
 
129
UPDATE sometable SET geog = ST_GeogFromText('SRID=4326;POINT(' || lon || ' ' || lat || ')');            
 
130
                        </programlisting>
 
131
                 </refsection>
 
132
                 
124
133
                  <refsection>
125
134
                        <title>See Also</title>
126
135
                        <para><xref linkend="ST_AsText" />,<xref linkend="ST_GeographyFromText" /></para>
1383
1392
                        you have raw coordinates rather than WKT.</para>
1384
1393
 
1385
1394
                        <note><para>Note x is longitude and y is latitude</para></note>
 
1395
                        <note><para>Use <xref linkend="ST_MakePointM" /> if you need to make a point with x,y,m.</para></note>
1386
1396
                        <para>&Z_support;</para>
1387
1397
 
1388
1398
                </refsection>
1406
1416
                </refsection>
1407
1417
                <refsection>
1408
1418
                        <title>See Also</title>
1409
 
                        <para><xref linkend="ST_GeomFromText" />, <xref linkend="ST_PointFromText" />, <xref linkend="ST_SetSRID" /></para>
 
1419
                        <para><xref linkend="ST_GeomFromText" />, <xref linkend="ST_PointFromText" />, <xref linkend="ST_SetSRID" />, <xref linkend="ST_MakePointM" /></para>
1410
1420
                </refsection>
1411
1421
        </refentry>
1412
1422