[MapProxy] black areas
Pestereva, Anna
apestereva at aerialservicesinc.com
Wed May 18 14:34:03 PDT 2016
Vanessa,
here is a sample of what we use:
......
parts:
on_error: &onerror
other:
response: transparent
cache: false
sources:
naip_wms:
type: wms
req:
url:
http://raster.nationalmap.gov/ArcGIS/services/Orthoimagery/USGS_EROS_Ortho_NAIP/ImageServer/WMSServer
layers: 0
coverage:
bbox: [-124.82,24.49,-66.93,49.44]
bbox_srs: 'EPSG:4326'
transparent: true
on_error: *onerror
......
Hopefully either "transparent" or "on_error" option will do the trick.
Notice, that "transparent: true" is outside the "req" option, which also
works for tile sources. Although in my case it worked for wms source from
within "req" option just the same as from outside. You can also find the
above WMS source useful for control testing.
Another useful option looks like is transparent_color
<http://mapproxy.org/docs/nightly/sources.html#image>, it removed even more
blackness compared to the above config:
......
sources:
naip_wms:
type: wms
req:
url:
http://raster.nationalmap.gov/ArcGIS/services/Orthoimagery/USGS_EROS_Ortho_NAIP/ImageServer/WMSServer
layers: 0
image:
transparent_color: '#000000'
......
Also make sure to clear cache between the tests.
*Anna Pestereva*
<http://aerialservicesinc.com/photoblogmetry/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20160518/25a462bf/attachment.html>
More information about the MapProxy
mailing list