[MapProxy] Issue with WMS Imagery Recoloring

Tom Batkiewicz tom at priority5.com
Wed Apr 13 16:34:20 EDT 2011


Hi all,

Having an issue with some images I'm caching and re-aligning using mapproxy
1.0.

When the query goes out from mapproxy, it looks something like the
following.  Everything looks fine on the source/cache side as this is what I
expect to see (the image in question is a heightmap)
http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=us_ned&srs=EPSG:4326&width=300&height=300&format=image/png&styles=feet_short_int&bbox=-125.000000,7.333333,-82.333333,50.000000
http://img600.imageshack.us/img600/4759/wmsp.png   (I uploaded this image
from my cache)
2011-04-13 14:04:25,398 - INFO - 6600:mapproxy.client.http.http:_log -
wms.jpl.nasa.gov - - [13/Apr/2011:14:04:25 ] "GET
/wms.cgi?request=GetMap&layers=us_ned&srs=EPSG:4326&width=300&height=300&format=image/png&styles=feet_short_int&bbox=-125.000000,7.333333,-82.333333,50.000000
HTTP/1.1" 200 58469 "-" ""

However, whenever I query mapproxy with the bbox aligned as I need it, the
image returned is almost entirely white (destroying the heightmap values I
need)

<http://img864.imageshack.us/img864/8105/000zl.png>
http://127.0.0.1:8080/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&WIDTH=256&HEIGHT=256&BBOX=20,-125,55,-60&CRS=EPSG:4326&FORMAT=image/png&LAYERS=us_ned&STYLES=&TRANSPARENT=FALSE
http://img709.imageshack.us/img709/9559/service.png (This is the image
returned by the above query)
127.0.0.1 - - [13/Apr/2011:15:21:51 -0500] "GET
/service?SERVICE=WMS&REQUEST=GetMap&VERSION=1.3.0&WIDTH=256&HEIGHT=256&BBOX=20,-125,55,-60&CRS=EPSG:4326&FORMAT=image/png&LAYERS=us_ned&STYLES=&TRANSPARENT=FALSE
HTTP/1.1" 200 8218 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16"

It looks like mapproxy is attempting to recolor the image in some way - is
there any way to disable that behavior?

<http://img709.imageshack.us/img709/9559/service.png>
Here are the relevant configuration snippets:

globals:
  cache:
    meta_size: [1, 1]
    meta_buffer: 0
grids:
  nasa_jpl:
    tile_size: [300, 300]
    srs: 'EPSG:4326'
    bbox: [-125, -35.33333333, -39.666666666, 50]
    bbox_srs: 'EPSG:4326'
layers:
  us_ned:
    title: NASA JPL - US NED 30m
    sources: [nasa_jpl_ned_cache]
caches:
  nasa_jpl_ned_cache:
    grids: [nasa_jpl]
    sources: [nasa_jpl_ned_src]
sources:
  nasa_jpl_ned_src:
    type: tile
    url:
http://wms.jpl.nasa.gov/wms.cgi?request=GetMap&layers=us_ned&srs=EPSG:4326&width=300&height=300&format=image/png&styles=feet_short_int&%(bbox)s
    grid: nasa_jpl
    origin: nw
    transparent: false

Note: the bbox query param is an extension I've added to mapproxy as
discussed in this thread
http://lists.osgeo.org/pipermail/mapproxy/2011-March/000465.html  (
http://onearth.jpl.nasa.gov/tiled.html)
I'll be submitting it for incorporation once it's complete, I've just left
the code out for now as I don't believe it pertains to the issue.  If seeing
it would help just ask and I can post a patch of what I have so far.

-- 
Tom Batkiewicz
Software Engineer, Priority 5
http://www.priority5.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110413/70f1c50b/attachment.html


More information about the MapProxy mailing list