[gdal-dev] ogr2ogr and nlt question

Even Rouault even.rouault at spatialys.com
Fri Sep 29 04:07:14 PDT 2017


Hi Andreas,
 
> when using ogr2ogr I can fix the geometry type for cases where I use SQL
> statements.
> 
> Can I use nlt multiple times?

No, only one will be taken into account (likely the last one, but I'd say this is unspecified 
behaviour)

> In my case I would like to specify -nlt
> CONVERT_TO_LINEAR to convert from CompounCurve to Polygon and then use
> -nlt POLYGON to tell it you are really a POLYGON. Is this possible to
> use the -nlt parameter twice?

You just need to use -nlt POLYGON. This will both force each feature geometry to Polygon 
(doing linear approximation if needed) and declare the layer type as Polygon

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/20170929/60e1c1c1/attachment.html>


More information about the gdal-dev mailing list