[gdal-dev] gdal_rasterize parameters not working
Rahkonen Jukka
jukka.rahkonen at maanmittauslaitos.fi
Mon Jul 3 08:22:38 PDT 2023
Hi,
What coordinate system and extent ogrinfo reports with
ogrinfo -al -so "C:\Temp\PROJECTS\CCRT\ClimateChangeFME\Modelling\UK\Shp\Coastal\Coastal_Flooding_2000.shp"
What coordinate system and extent gdalinfo reports with
gdalinfo "C:\Temp\PROJECTS\CCRT\ClimateChangeFME\Modelling\UK\Maps\coastal_2000.tif"
Did the coastal_2000.tif exist already or was it created by gdal_rasterize? Have you been thinking that the default datatype in the result is Float64 https://gdal.org/programs/gdal_rasterize.html#cmdoption-gdal_rasterize-ot and that the whole range 52 to 82 in the source data is very, very close to the black end of the target TIFF? Without LUT stretch the result looks certainly all black in image viewers.
-Jukka Rahkonen-
Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Clive Swan
Lähetetty: maanantai 3. heinäkuuta 2023 17.36
Vastaanottaja: gdal-dev at lists.osgeo.org
Aihe: [gdal-dev] gdal_rasterize parameters not working
I am trying to create a heatmap from a Shp Point feature.
The output is doesn't cover the Shp??
I entered the following gdal gdal_rasterize parameters.
gdal_rasterize
-a hazard_l_1
-te -4.822014 52.517355 1.757978 55.779307
-tr 0.1 0.1
-ts 2035 2069
"C:\Temp\PROJECTS\CCRT\ClimateChangeFME\Modelling\UK\Shp\Coastal\Coastal_Flooding_2000.shp" "C:\Temp\PROJECTS\CCRT\ClimateChangeFME\Modelling\UK\Maps\coastal_2000.tif"
It doesn't use the field from - a hazard >> 52 to 82??
The Raster doesn't cover the UK??
The raster should only cover the UK.
Any suggestions you would recommend to use??
Thanks
Clive
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20230703/3e7b8804/attachment.htm>
More information about the gdal-dev
mailing list