Re: [gdal-dev] ogr2ogr and nlt question

2017-09-29 Thread Even Rouault
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_

Re: [gdal-dev] ogr2ogr and nlt question

2017-09-29 Thread Andreas Neumann
answering myself: apparently ogr2ogr accepts two -nlt parameters and the result looks ok (correct type and correctly segmentized from the original CURVEPOLYGON). So all good in this respect. Andreas On 2017-09-29 08:32, Andreas Neumann wrote: > Hi, > > when using ogr2ogr I can fix the geom

Re: [gdal-dev] ogr2ogr and nlt question

2017-09-28 Thread Andreas Neumann
sorry - I meant to say that I convert CURVEPOLYGON to POLYGON, not COMPOUNDCURVE TO POLYGON. Andreas On 2017-09-29 08:32, Andreas Neumann wrote: > Hi, > > when using ogr2ogr I can fix the geometry type for cases where I use SQL > statements. > > Can I use nlt multiple times? In my case I

[gdal-dev] ogr2ogr and nlt question

2017-09-28 Thread Andreas Neumann
Hi, when using ogr2ogr I can fix the geometry type for cases where I use SQL statements. Can I use nlt multiple times? 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 possibl