[gdal-dev] Exporting line vertices to SHP using GDAL

Mateusz Loskot mateusz at loskot.net
Mon Aug 11 10:31:52 EDT 2008


D wrote:
> Thanks for the hint, Mateusz.
> 
> I am guessing that I will need to get a driver in Python to write from an
> Oracle table to a DBF field 'Z'?

Yes, you've probably seen my script:

http://lists.osgeo.org/pipermail/gdal-dev/2008-August/017897.html

> I am not quite sure how the script will know for which point feature it has
> to write which Z value - one line feature in SDO has multiple point feature
> in SHP :S

You have to figure out how you want to make points separation of your 
geometry.

> Another problem is that is am also a beginner in Python, but I am growing
> :-)

I'm quite sure that everybody here was a beginner too :-)
This should be helpful:

http://trac.osgeo.org/gdal/wiki/GdalOgrInPython
http://docs.python.org/tut/tut.html

and here you can find plenty of examples:

http://trac.osgeo.org/gdal/browser/trunk/autotest/ogr


Best regards
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the gdal-dev mailing list