[gdal-dev] ogr and python

Guillaume Sueur guillaume.sueur at neogeo-online.net
Tue Sep 16 04:09:05 EDT 2008


Hi devs,

I'm facing a little problem for which I'm sure to find some clue here...
I'm writing a Python module to automatically import data (shp, tab) to a
postgis table.
I've written it based on the vec_tr.py python example.
But it appears my geometries are not all of the same ogr type. Some are
polygons and others are multipolygon. Is there a way to transform an ogr
geometry on the fly from one type to another to allow to populate the
whole table with multipolygons ?

Thanks !
-- 
Guillaume SUEUR



More information about the gdal-dev mailing list