[FWTools] python ogr midmif

Frank Warmerdam warmerdam at pobox.com
Mon Apr 14 11:21:48 EDT 2008


redar ready wrote:
> hi,list
> have anybody used the extension python of ogr for read and write 
> mid/mif(format of mapinfo)
> i can't found any exemple with google

Redar Ready,

Generally speaking mapinfo mid/mif access works the same as other OGR
formats. You should read over the mapinfo specific notes at:

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

And then review OGR python example code like:

   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/assemblepoly.py
   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/get_soundg.py
   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/vec_tr.py
   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/samples/load2odbc.py
   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/gcps2vec.py
   http://svn.osgeo.org/gdal/trunk/gdal/swig/python/scripts/mkgraticule.py

You might also find the OGR API Tutorial helpful, though there are non
trivial differences between the C/C++ API and the Python interface:

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

And of course you should try to understand the OGR Architecture before
diving into a deep project:

   http://www.gdal.org/ogr/ogr_arch.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    | President OSGeo, http://osgeo.org



More information about the FWTools mailing list