[gdal-dev] curved polygon -> polygon

Martin Landa landa.martin at gmail.com
Wed Dec 3 10:11:40 PST 2014


Hi Even,

2014-11-26 12:43 GMT+01:00 Even Rouault <even.rouault at spatialys.com>:
> The PostGIS driver doesn't do automatic conversion of geometry types as it can
> support all (you would get similar errors if inserting polygons into a
> multipolygon layer, or the reverse). This is kind of historic behaviour.
> You can fix the error by specifying either -nlt CONVERT_TO_LINEAR (or -nlt
> POLYGON), or -nlt CURVEPOLYGON
>
> Actually digging more, I was convinced that in my work related to curve
> geometries, I had make sure that the GML reader does its best to convert each
> geometry to the layer declared geometry type. This indeed worked for single
> geometry column layers, but not for multiple geometry such as yours. I've just
> fixed that.

now it works, thanks a lot for your great job on curves! Martin

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


More information about the gdal-dev mailing list