karsten
2013-10-15 08:20:16 UTC
Hi,
I have installed mapproxy on my Ubuntu server outside the virtual
environment (the virtual env was troublesome so I for now settled for this
option).
I am able to run the demo site with both the regular apache server and also
the test server.
This works great. I now added one MapServer layer (which is located on the
same server. I tested again that my wms is working and it is e.g.
http://terra2.terragis.net/cgi-bin/mapserv?map=/mnt/maps/vfs_mapproxytest.ma
p
<http://terra2.terragis.net/cgi-bin/mapserv?map=/mnt/maps/vfs_mapproxytest.m
ap&LAYERS=gemeinde_merc&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=G
etMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=1160758.2358917,6226
544.0158282,1273273.5415119,6351442.1200288&WIDTH=736&HEIGHT=817>
&LAYERS=gemeinde_merc&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=Get
Map&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=1160758.2358917,622654
4.0158282,1273273.5415119,6351442.1200288&WIDTH=736&HEIGHT=817
Now when I try to use MapProxy I always get a message back that the SRS is
not valid for all layers. However there is only one layer in the map files
and it has teh following srs configured:
"wms_srs" "epsg:31468 epsg:31494 epsg:4326 epsg:900913"
My questions are
1. is there a way (hopefully outside of python and in the configuration
files) to not only log the actual WMS request MapProxy makes to MapServer .
So far I could only see the requests made ot the MapProxy service (I saw
that in the console output and the apache log file)
2. Is there anything obvious wrong with my configuration ( see below) so I
can not get any images back from MapServer / MapProxy ?
Cheers
Karsten
----------------------------------------------------------------------------
--------------------
In MapProxy yaml I have added to the demo layers this:
... snip ....
layers:
- name: gemeinde
title: Gemeinden in Bayern
sources: [gemeinde_cache]
caches:
gemeinde_cache:
grids: [bayern]
sources: [gemeinde_wms]
sources:
gemeinde_wms:
type: mapserver
req:
layers: gemeinde_merc
map: /mnt/maps/vfs_mapproxytest.map
mapserver:
binary: /var/www <http://localhost/cgi-bin/mapserv> /cgi-bin/mapserv
working_dir: /mnt/maps/
coverage:
bbox: [1025548.802262,6027618.553381,1540090.415317,6519963.998869]
bbox_srs: 'EPSG:900913'
grids:
bayern:
base: GLOBAL_WEBMERCATOR
globals:
image:
formats:
terra_image_jpeg:
format: image/jpeg
resampling_method: nearest
jpeg_quality: 90
...
Karsten Vennemann
Principal
Terra GIS LTD
2119 Boyer Ave E
Seattle, WA 98112
USA
<http://www.terragis.net/> www.terragis.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20131015/62586c1f/attachment.html>
I have installed mapproxy on my Ubuntu server outside the virtual
environment (the virtual env was troublesome so I for now settled for this
option).
I am able to run the demo site with both the regular apache server and also
the test server.
This works great. I now added one MapServer layer (which is located on the
same server. I tested again that my wms is working and it is e.g.
http://terra2.terragis.net/cgi-bin/mapserv?map=/mnt/maps/vfs_mapproxytest.ma
p
<http://terra2.terragis.net/cgi-bin/mapserv?map=/mnt/maps/vfs_mapproxytest.m
ap&LAYERS=gemeinde_merc&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=G
etMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=1160758.2358917,6226
544.0158282,1273273.5415119,6351442.1200288&WIDTH=736&HEIGHT=817>
&LAYERS=gemeinde_merc&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=Get
Map&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A900913&BBOX=1160758.2358917,622654
4.0158282,1273273.5415119,6351442.1200288&WIDTH=736&HEIGHT=817
Now when I try to use MapProxy I always get a message back that the SRS is
not valid for all layers. However there is only one layer in the map files
and it has teh following srs configured:
"wms_srs" "epsg:31468 epsg:31494 epsg:4326 epsg:900913"
My questions are
1. is there a way (hopefully outside of python and in the configuration
files) to not only log the actual WMS request MapProxy makes to MapServer .
So far I could only see the requests made ot the MapProxy service (I saw
that in the console output and the apache log file)
2. Is there anything obvious wrong with my configuration ( see below) so I
can not get any images back from MapServer / MapProxy ?
Cheers
Karsten
----------------------------------------------------------------------------
--------------------
In MapProxy yaml I have added to the demo layers this:
... snip ....
layers:
- name: gemeinde
title: Gemeinden in Bayern
sources: [gemeinde_cache]
caches:
gemeinde_cache:
grids: [bayern]
sources: [gemeinde_wms]
sources:
gemeinde_wms:
type: mapserver
req:
layers: gemeinde_merc
map: /mnt/maps/vfs_mapproxytest.map
mapserver:
binary: /var/www <http://localhost/cgi-bin/mapserv> /cgi-bin/mapserv
working_dir: /mnt/maps/
coverage:
bbox: [1025548.802262,6027618.553381,1540090.415317,6519963.998869]
bbox_srs: 'EPSG:900913'
grids:
bayern:
base: GLOBAL_WEBMERCATOR
globals:
image:
formats:
terra_image_jpeg:
format: image/jpeg
resampling_method: nearest
jpeg_quality: 90
...
Karsten Vennemann
Principal
Terra GIS LTD
2119 Boyer Ave E
Seattle, WA 98112
USA
<http://www.terragis.net/> www.terragis.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20131015/62586c1f/attachment.html>