Re: [gdal-dev] Interpolation when using the WMS format

2014-09-28 Thread Jukka Rahkonen
Peter Hopfgartner r3-gis.com> writes: > I finally took the time to have a better look at this. > > The attached patch is only for our special case, where data arrives in 8 > bit bands and is certainly far from being decent (I've written my last > C++ code approx. 15 years ago). Anyway, the i

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-26 Thread Peter Hopfgartner
Am 26.09.2014 um 19:22 schrieb Even Rouault : > Peter, > Hi Even, > This is an interesting proof of concept. > > I have several notes : > - not sure about your naming conventions. For me your 'top' and 'bottom' must > be inverted. In imaging convention, the y of top is < to the y of bottom >

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-26 Thread Even Rouault
Peter, This is an interesting proof of concept. I have several notes : - not sure about your naming conventions. For me your 'top' and 'bottom' must be inverted. In imaging convention, the y of top is < to the y of bottom - the formula is only appropriate for a resampling up to a factor of 2 - y

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-26 Thread Peter Hopfgartner
On 09/19/2014 01:50 PM, Peter Hopfgartner wrote: On 09/18/2014 10:30 PM, Even Rouault wrote: 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 poi

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Jukka Rahkonen
Jukka Rahkonen mmmtike.fi> writes: > Hi, > > You are naturally right about the tiles and it is good if you will work and > make GDAL better. I reacted when you wrote "what I am really interested in > is to use this from MapServer". I believe that your improvements will have > no effect on what y

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Peter Hopfgartner
On 09/19/2014 12:51 PM, Even Rouault wrote: Selon Peter Hopfgartner : Hello Evan, I've tried this on your suggestion. What happens is, that all labels are now much smaller, even harder to read then before. Basically, it seems that tiles from a higher zoom levels are taken. This would be reason

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Peter Hopfgartner
On 09/18/2014 10:30 PM, Even Rouault wrote: 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

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Even Rouault
Selon Peter Hopfgartner : > Hello Evan, > > I've tried this on your suggestion. What happens is, that all labels are > now much smaller, even harder to read then before. Basically, it seems > that tiles from a higher zoom levels are taken. This would be > reasonably, if there would be no labels on

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Jukka Rahkonen
Peter Hopfgartner r3-gis.com> writes: > > On 09/18/2014 11:03 PM, Jukka Rahkonen wrote: > > 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 point

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Peter Hopfgartner
On 09/18/2014 11:03 PM, Jukka Rahkonen wrote: 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, Hi Jukka Why

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-19 Thread Peter Hopfgartner
Hello Evan, I've tried this on your suggestion. What happens is, that all labels are now much smaller, even harder to read then before. Basically, it seems that tiles from a higher zoom levels are taken. This would be reasonably, if there would be no labels on the tiles. But in the case of th

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-18 Thread Jukka Rahkonen
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

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-18 Thread Even Rouault
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

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-18 Thread Peter Hopfgartner
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

Re: [gdal-dev] Interpolation when using the WMS format

2014-09-18 Thread Even Rouault
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

[gdal-dev] Interpolation when using the WMS format

2014-09-18 Thread Peter Hopfgartner
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