[Gdal-dev] Basic Pg Question

Frank Warmerdam warmerdam at pobox.com
Thu Sep 27 11:05:32 EDT 2007


On 9/27/07, Brian Hamlin <maplabs at light42.com> wrote:
> If I have a database with a table, and that table has fields Latitude
> and Longitude, in double precision. What are some ways I can enable OGR
> to see that as a Point?  I am asking for all the steps.. I assume there
> are many ways to begin

Brian,

Matthew Perry's mechanism is in fact the best and most
direct approach.  But I can't help mentioning that the OGR
VRT driver can be used to massage seemingly non-spatial
feature sources with geometry info in x/y columns into an
OGR spatial data source:

http://www.gdal.org/ogr/drv_vrt.html

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list