You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use gdal_grid and gdaldem to create a colorized GeoTIFF from simple .csv data files. In some cases, I observe strange rendering artifacts when using the linear interpolation algorithm.
For example, this is a correct (expected) rendering of a sample file using the nearest algorithm:
When I switch to the linear algorithm, I get unexpected rendering artifacts (notice the red bars at the top):
this problem only happens for some specific map areas / input data sets
the artifacts are not present if I flip the output GeoTIFF by providing -tye parameters in the reverse order, i.e. -tye 53.746311 54.980014 instead of -tye 54.980014 53.746311 - so maybe the issue is somehow related to negative pixel dimensions
Operating system
Ubuntu 18.04 64 bit
I also replicated the problem inside a CentOS 7.4 Docker container.
GDAL version and provenance
GDAL 2.3.0 compiled from source.
The text was updated successfully, but these errors were encountered:
Expected behavior and actual behavior.
I use
gdal_grid
andgdaldem
to create a colorized GeoTIFF from simple.csv
data files. In some cases, I observe strange rendering artifacts when using thelinear
interpolation algorithm.For example, this is a correct (expected) rendering of a sample file using the
nearest
algorithm:When I switch to the
linear
algorithm, I get unexpected rendering artifacts (notice the red bars at the top):Steps to reproduce the problem.
I uploaded example input files here.
Generate GeoTIFF from
samples.csv
&samples.vrt
:Colorize the GeoTIFF file:
Some other things I noticed:
-tye
parameters in the reverse order, i.e.-tye 53.746311 54.980014
instead of-tye 54.980014 53.746311
- so maybe the issue is somehow related to negative pixel dimensionsOperating system
Ubuntu 18.04 64 bit
I also replicated the problem inside a CentOS 7.4 Docker container.
GDAL version and provenance
GDAL 2.3.0 compiled from source.
The text was updated successfully, but these errors were encountered: