[gdal-dev] ogr2ogr PROMOTE_TO_MULTI with linestrings?

Even Rouault even.rouault at spatialys.com
Tue May 16 06:53:16 PDT 2017


On mardi 16 mai 2017 09:21:06 CEST Stephen Woodbridge wrote:
> I'm just trying to load the census roads data. I think what happened is
> that when the table was created using -nlt PROMOTE_TO_MULTI it was
> created as polygon geometry. then the subsequent insert failed. I change
> the script to -nlt MULTILINESTRING and it loaded all the data. I found a
> post from Even circa 2012 IIRC that indicated PROMOTE_TO_MULTI should
> work for both polygons and linestrings.

It does, but it promotes the layer geometry type  *source* to the corresponding 
multi geometry type. It doesn't take into account the target layer geometry type. 
We should perhaps have a a-nlt DST_GEOMETRY_TYPE for that.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170516/1348e647/attachment.html>


More information about the gdal-dev mailing list