Re: [gdal-dev] Converting 3D Polygons to 2D Polygons?

2019-10-15 Thread Eli Adam
On Tue, Oct 15, 2019 at 6:12 PM Brandon Biggs wrote: > Hello, > > Is there some way to convert 3D objects to 2D polygons using ogr2ogr? > > Did you already try, -dim XY More details here, https://gdal.org/programs/ogr2ogr.html#ogr2ogr What happened if you tried -dim XY? Best regards, Eli I

[gdal-dev] Converting 3D Polygons to 2D Polygons?

2019-10-15 Thread Brandon Biggs
Hello, Is there some way to convert 3D objects to 2D polygons using ogr2ogr? I have a large file with lots of polygons with 0 as the z coordinate. So the point would look like [1,2,0]. I would like it to be: [1,2]. Thanks, ___ gdal-dev mailing

Re: [gdal-dev] Adding The DWG Driver to ogr2ogr?

2019-10-15 Thread Brandon Biggs
Hello, I opened an issue: https://github.com/conda-forge/gdal-feedstock/issues/339 Please let me know if there is something else I can do. Thank you, Brandon Biggs Engineer Smith-Kettlewell Eye Research Institute Office: 415-345-2130 Cell: 650-833-9394

Re: [gdal-dev] Adding The DWG Driver to ogr2ogr?

2019-10-15 Thread Alan Snow
Hi Brandon. I would recommend opening up an issue on the conda-forge feedstock: https://github.com/conda-forge/gdal-feedstock Best, Alan On Tue, Oct 15, 2019 at 4:00 PM Brandon Biggs wrote: > Hello, > > I'm wondering how to build custom packages to use in my Conda installation? > > In

[gdal-dev] Adding The DWG Driver to ogr2ogr?

2019-10-15 Thread Brandon Biggs
Hello, I'm wondering how to build custom packages to use in my Conda installation? In particular, I would like a GWD driver for ogr2ogr. I would like the AutoCAD DWG driver, but it looks as if it is not built in my installation. It looks as if I will

Re: [gdal-dev] gdal_contour attribute field not populated for polygons outputs

2019-10-15 Thread G. Allegri
Thanks a lor Even, I missed that line ;) Works perfectly with -amin / -amax Giovanni Il giorno mar 15 ott 2019 alle ore 13:02 Even Rouault < even.roua...@spatialys.com> ha scritto: > On mardi 15 octobre 2019 12:57:16 CEST G. Allegri wrote: > > Dear list, > > I'm using gdal_contour with a single

Re: [gdal-dev] gdal_contour attribute field not populated for polygons outputs

2019-10-15 Thread Even Rouault
On mardi 15 octobre 2019 12:57:16 CEST G. Allegri wrote: > Dear list, > I'm using gdal_contour with a single band (float) raster. It works as > expected for the default linestring outputs but when I set the "-p" option > the attribute field is created but it's empty. > > This is the command I

[gdal-dev] gdal_contour attribute field not populated for polygons outputs

2019-10-15 Thread G. Allegri
Dear list, I'm using gdal_contour with a single band (float) raster. It works as expected for the default linestring outputs but when I set the "-p" option the attribute field is created but it's empty. This is the command I run: >gdal_contour -b 1 -a val -i 10.0 -p -f "ESRI Shapefile" .tif .shp