[Gdal-dev] python - get projection from a file

Brent Pedersen bpederse at gmail.com
Mon Mar 6 14:08:12 EST 2006


hi, i'd like to be able to have a user upload a file (.shapefile for now). i
want to then use python/gdal to get the projection information associated
with that file. where do i start?

i have ogr.Open(filename) and the simple stuff like that, but how do i get
the projection? i am having trouble seeing how ogr fits in with stuff like
osr.SpatialReference.ImportFromESRI ...

thanks for any pointers,
-brent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060306/244f365a/attachment.html


More information about the Gdal-dev mailing list