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
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to