[MapProxy] ArcGIS Rest export hack and patch status
André Pirard
A.Pirard.Papou at gmail.com
Mon Jun 8 15:40:23 PDT 2015
Hello,
To support ArcGIS Rest, I made a tiny 1.6 patch that adds
&size=<width>,< height> to a WMS requests.
By "manually" adding other ¶meters=as_below, the request becomes
ArcGIS export compatible.
After installing 1.8, I noticed correct JOSM images despite the patch
was absent.
Not receiving size information, ArcGIS returns 400×400 tiles and
Mapproxy seems to cope with that.
I "manually" set &size=1184,1184 according to the size I saw Mapproxy
use routinely.
http://geoservices.wallonie.be/arcgis/rest/services/TOPOGRAPHIE/PICC/MapServer/export?styles=&service=WMS&format=image%2Fpng&f=image&request=GetMap&dpi=90&height=1184&srs=EPSG%3A3857&version=1.1.1&bboxSR=3857&bbox=625842.501028,6539622.5054,626196.022284,6539976.02665&imageSR=3857&width=1184&transparent=True&size=1184,1184
Is Mapproxy designed to build a correct cache when the tiles are
received with a non-requested size?
Does Mapproxy always use the same size (here 1184) for a given
configuration?
Why isn't Aron Bierbaum's patch (authored on 16 Aug 2013) integrated?
It's essentially equivalent to my hack but needs not adding the other
parameters "manually".
Isn't supporting ArcGIS great?
Thank you,
Cheers
André.
services:
demo:
kml:
tms:
wmts:
wms:
srs: ['EPSG:4326', 'EPSG:3857', 'EPSG:900913', 'CRS:84',
'EPSG:31370', 'EPSG:3812']
image_formats: ['image/jpeg', 'image/png', 'image/png8']
layers:
- name: SPW_BASE
title: SPW base
sources: [SPW_BASE_cache]
caches:
SPW_BASE_cache:
sources: [SPW_BASE_source]
grids: [GLOBAL_MERCATOR]
sources:
SPW_BASE_source:
type: wms
supported_srs: ['EPSG:3857']
image:
transparent_color: '#fdfdfd'
transparent_color_tolerance: 5
req:
url:
http://geoservices.wallonie.be/arcgis/rest/services/TOPOGRAPHIE/PICC/MapServer/export?
dpi: 90
bboxSR: 3857
imageSR: 3857
f: image
transparent: false
format: png8
size: 1184,1184
globals:
image:
resampling_method: bicubic
cache:
link_single_color_images: true
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20150609/190b8793/attachment.html>
More information about the MapProxy
mailing list