[gdal-dev] promote_to_multi and python API

Martin Landa landa.martin at gmail.com
Thu Dec 10 00:39:30 PST 2020


Hi,

is there a way to apply PROMOTE_TO_MULTI in Python API? I am trying to
write a sample script for students in Python which converts SHP file
to PostGIS layers. I am dealing with a well known problem "Geometry
type (MultiXXX) does not match column type (XXX)".

How to solve it properly in order to avoid calling `ogr2ogr` from
Python code? :-)

Thanks, Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the gdal-dev mailing list