[MapProxy] Arcgis Server and cache_tms
Glenn Mullett
gmullett at lidwala.com
Tue Jul 13 04:20:42 EDT 2010
Hi Oliver
Nope..still not replacing those wild cards...and my wild card/tile config in services.yaml is the same as yours.
python -m mapproxy.core.version = 0.8.3
python --version = Python 2.6.4
apache httpd config:
<VirtualHost *:80>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /mapproxy http://localhost:5000 #mapproxy port in develop.ini
ProxyPassReverse /mapproxy http://localhost:5000
......
System Info (ubuntu 9.10 server):
(mapproxy)root at GEO2:/var/venv/mapproxy/mymapproxy# uname -a
Linux GEO2 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux
stdout:
______________________
(mapproxy)root at GEO2:/var/venv/mapproxy/mymapproxy# paster serve etc/develop.ini --reload
Starting subprocess with file monitor
2010-07-13 10:07:30,855 - INFO - 3016:mapproxy.core.conf_loader:load_services - Reading services configuration:
/var/venv/mapproxy/mymapproxy/etc/services.yaml
2010-07-13 10:07:30,904 - INFO - 3016:mapproxy.core.srs:_init_proj - loading proj data from /usr/share/proj
Starting server in PID 3016.
serving on 0.0.0.0:5000 view at http://127.0.0.1:5000
2010-07-13 10:08:10,002 - INFO - 3016:mapproxy.core.client.http:_log - server.arcgisonline.com - - [13/Jul/2010:10:08:10 ] "GET
/ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%(y)s/%(x)s/0/0/0.png HTTP/1.1" 400 0 "-" ""
2010-07-13 10:08:10,003 - ERROR - 3016:mapproxy.wms.layer:render - HTTP Error (http://server.arcgisonline.com...): 400
127.0.0.1 - - [13/Jul/2010:10:08:09 +0200] "GET
/service?LAYERS=esri&SRS=EPSG%3A900913&FORMAT=image%2Fpng&TRANSPARENT=true&SINGLETILE=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-20037508,-20037508,20037508.6784,20037508.6784&WIDTH=256&HEIGHT=256
HTTP/1.1" 200 1306 "http://www.mp-rams.co.za/mpramsgeoportal/combotest.html" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3)
Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"
2010-07-13 10:08:10,036 - INFO - 3016:mapproxy.core.client.http:_log - server.arcgisonline.com - - [13/Jul/2010:10:08:10 ] "GET
/ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%(y)s/%(x)s/17/65538/65536.png HTTP/1.1" 400 0 "-" ""
2010-07-13 10:08:10,038 - ERROR - 3016:mapproxy.wms.layer:render - HTTP Error (http://server.arcgisonline.com...): 400
2010-07-13 10:08:10,047 - INFO - 3016:mapproxy.core.client.http:_log - server.arcgisonline.com - - [13/Jul/2010:10:08:10 ] "GET
/ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%(y)s/%(x)s/17/65536/65534.png HTTP/1.1" 400 0 "-" ""
2010-07-13 10:08:10,053 - INFO - 3016:mapproxy.core.client.http:_log - server.arcgisonline.com - - [13/Jul/2010:10:08:10 ] "GET
/ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%(y)s/%(x)s/17/65534/65534.png HTTP/1.1" 400 0 "-" ""
2010-07-13 10:08:10,054 - ERROR - 3016:mapproxy.wms.layer:render - HTTP Error (http://server.arcgisonline.com...): 400
2010-07-13 10:08:10,075 - INFO - 3016:mapproxy.core.client.http:_log - server.arcgisonline.com - - [13/Jul/2010:10:08:10 ] "GET
/ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%(y)s/%(x)s/17/65535/65534.png HTTP/1.1" 400 0 "-" ""
________________________
Could it be due to the apache proxy perhaps?
Regards
Glenn
On Tuesday 13 July 2010 08:50:32 Oliver Tonnhofer wrote:
| Hi,
|
| On 12.07.2010, at 23:57, Glenn Mullett wrote:
| > So I tried this for ags:
| > url:
| > http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/Map
| > Server/tile/ %(z)s/%(y)s/%(x)s
| > but it the request to the ags is
| > "GET /ArcGIS/rest/services/World_Street_Map/MapServer/tile/%(z)s/%
| > (y)s/%(x)s/6/39/29.png"
|
| It does work here with MapProxy 0.8.3. Here is my layer configuration,
| URL shortened:
|
| tiles:
| md:
| title: TMS
| sources:
| - type: cache_tiles
| url: http://server[...]/tile/%(z)s/%(y)s/%(x)s
| origin: nw
|
| Can you post your configuration, the output of `python -m
| mapproxy.core.version` and any log output you get from running the
| server?
|
| > I can't, however find any place related to swapping wild cards with
| > values - the only reference I can find is in this commented out bit.
|
| The last line in the substitute method:
| http://bitbucket.org/olt/mapproxy/src/0.8.x/mapproxy/core/client.py#cl-190
|
| The replacement of the variables is done by Python.
More information about the MapProxy
mailing list