[gdal-dev] Question on gdal_contour and limiting the range of contours generated.
jratike80
jukka.rahkonen at maanmittauslaitos.fi
Thu Oct 31 01:38:38 PDT 2019
Second thought, perhaps I would just delete unnecessary contour lines
afterwards instead of flattening the DEM.
gdal_contour -f gpkg -a elev -off -121.92 -i 1.524
bathy-value/crm_vol2.nc.tif bathy-contours/crm_vol2.nc-5.gpkg
ogrinfo -sql "delete from crm_vol2.nc-5 where elev>0"
bathy-contours/crm_vol2.nc-5.gpkg
ogrinfo -sql "VACUUM" bathy-contours/crm_vol2.nc-5.gpkg
-Jukka-
jratike80 wrote
> Hi,
>
> I believe I would use gdal_calc https://gdal.org/programs/gdal_calc.html
> and
> make the terrain above the sea level flat before creating the contours.
> And
> I would avoid shapefiles and use GeoPackage as output format.
>
> There is a button "Edit on GitHub" in the top-right corner on page
> https://gdal.org/programs/gdal_contour.html, feel free to test it.
>
> -Jukka Rahkonen-
--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html
More information about the gdal-dev
mailing list