Peter Hopfgartner r3-gis.com> writes:
>
> Salut Evan,
>
> thanks for you recipe. Unfortunately, what I am really interested in is to
use this from MapServer. Could
> you give me a pointer in the source where the resampling takes place?
Hi,
Why don't you test with Mapserver then before startin
Le jeudi 18 septembre 2014 22:23:06, Peter Hopfgartner a écrit :
> Salut Evan,
>
> thanks for you recipe. Unfortunately, what I am really interested in is to
> use this from MapServer. Could you give me a pointer in the source where
> the resampling takes place?
In gcore/rasterio.cpp : GDALRaster
Salut Evan,
thanks for you recipe. Unfortunately, what I am really interested in is to use
this from MapServer. Could you give me a pointer in the source where the
resampling takes place?
Thanks,
Peter
Am 18.09.2014 um 22:11 schrieb Even Rouault :
> Le jeudi 18 septembre 2014 17:40:11, Peter
Le jeudi 18 septembre 2014 17:40:11, Peter Hopfgartner a écrit :
> Hi, everybody
>
> we are using the GDAL WMS driver for getting maps from a public WMTS
> service, http://www.basemap.at. Anyway, the resulting image does not
> look smooth. In particular, I would guess that the the image was scaled
Hi, everybody
we are using the GDAL WMS driver for getting maps from a public WMTS
service, http://www.basemap.at. Anyway, the resulting image does not
look smooth. In particular, I would guess that the the image was scaled
with something like a nearest neighbor algorithm.
So my question is si
I found a workaround for my problem:
First get all zeros in the original file with:
gdal_calc.py -A original_file.tif --outfile=zeros.tif --calc=A==0
--> results in a file where ther former zero cells have a value of 1 and all
other cells 0
Then combine the temporary file with the original file:
I am trying to reassign 0 values in my raster to 1 and leave all the other
values as they are.
gdal_calc.py -A infile.tif --outfile=outfile.tif --calc="A* logical_or(A <
0, A > 0)" --overwrite --NoDataValue=1
The problem I am encountering is, that I cannot reassign the zeros. In my
calculation I