[gdal-dev] gdal_contour: 2.2.4 vs. 2.4.1
Even Rouault
even.rouault at spatialys.com
Wed May 15 05:47:21 PDT 2019
On mercredi 15 mai 2019 05:53:30 CDT Seonghyeon Hahn wrote:
> Hello,
>
> We've been using gdal v2.2.4 for a while. In particular, we've been
> frequently using the "gdal_contour" command for raster-to-vector conversion
> from the Golden Software ASCII Grid (GSAG) into the WAsP .map format in the
> following way:
>
> % gdal_contour ./input.grd ./output.map -i 10.0 -f WAsP
>
> This has been working fine with gdal2.2.4, but recently upgraded gdal2.4.1
> doesn't seem to work.
OK, I've reproduced the issue. I've just submitted a fix for the WaSP driver
to the master, 3.0 and 2.4 branches.
You can workaround the bug by doing a 2-step process:
1) output to shapefile (or whatever other format which supports 3D) with
gdal_contour, with an explicit -3d flag:
$ gdal_contour input.grd tmp.shp -3d -i 10.0
2) convert to WaSP:
$ ogr2ogr output.map tmp.shp -f WAsP
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the gdal-dev
mailing list