[MapProxy] MapProxyConfiguration does not work

Stefan Schantz SSchantz at BfS.de
Mon Dec 27 07:37:25 EST 2010


Hi,
I am new at MapProxy. I have installed MapProxy on  my windows XP and 
-after several problems- the demo works.
Now I try to configurate my own UMN Mapserver in MapProxy (see 
mapproxy.yaml  "raster"), but the only answer to my MapProxy request is 
"Invalide request: no response from url 
(http://134.92.2.125/cgi-bin/ma..):  timeout".

If I use the request from the MapProxy to UMN Mapserver in the firefox 
-as written in the log- I get a picture.
What is my mistake?
Thank you!
Stefan

-- 
Mit freundlichen Grüßen

Stefan Schantz
____________________________
Bundesamt für Strahlenschutz
SW 2.1 / Betrieb IMIS
Ansprechpartner für
Geoinformationen
Ingolstädter Landstraße 1
D-85764 Oberschleißheim

Tel.: 030 18333 2563
Fax.: 030 18333 2565
E-Mail: sschantz at bfs.de
____________________________

-------------- next part --------------
2010-12-27 13:30:03,405 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:03,405 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:03,437 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:03,437 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:03 +0200] "GET /demo/static/img/zoom-minus-mini.png HTTP/1.1" 200 359 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; d
e-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:03 +0200] "GET /demo/static/img/zoom-plus-mini.png HTTP/1.1" 200 489 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de
-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:03 +0200] "GET /demo/static/img/east-mini.png HTTP/1.1" 200 451 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT;
rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:06,921 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:06 +0200] "GET /demo/ HTTP/1.1" 200 3912 "http://localhost:8080/demo/?wms_layer=raster&format=image%2Fpng" "Mozilla/5
.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:07,030 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:07,062 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:07 +0200] "GET /demo/static/site.css HTTP/1.1" 200 1933 "http://localhost:8080/demo/" "Mozilla/5.0 (Windows; U; Windo
ws NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:07 +0200] "GET /demo/static/logo.png HTTP/1.1" 200 1368 "http://localhost:8080/demo/" "Mozilla/5.0 (Windows; U; Windo
ws NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,030 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/?wms_layer=raster&format=image%2Fpng HTTP/1.1" 200 2107 "http://localhost:8080/demo/" "Mozilla/5
.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,125 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,140 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,155 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/site.css HTTP/1.1" 200 1933 "http://localhost:8080/demo/?wms_layer=raster&format=image%2F
png" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/OpenLayers.js HTTP/1.1" 200 166152 "http://localhost:8080/demo/?wms_layer=raster&format=i
mage%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/logo.png HTTP/1.1" 200 1368 "http://localhost:8080/demo/?wms_layer=raster&format=image%2F
png" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,500 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,530 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,530 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,530 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
2010-12-27 13:30:10,546 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/theme/default/style.css HTTP/1.1" 200 8255 "http://localhost:8080/demo/?wms_layer=raster&
format=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,592 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/north-mini.png HTTP/1.1" 200 484 "http://localhost:8080/demo/?wms_layer=raster&format
=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,608 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/west-mini.png HTTP/1.1" 200 453 "http://localhost:8080/demo/?wms_layer=raster&format=
image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,625 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/east-mini.png HTTP/1.1" 200 451 "http://localhost:8080/demo/?wms_layer=raster&format=
image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/south-mini.png HTTP/1.1" 200 481 "http://localhost:8080/demo/?wms_layer=raster&format
=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:30:10,671 - DEBUG - 572:paste.httpserver.ThreadPool:add_task - Added task (0 tasks queued)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/zoom-minus-mini.png HTTP/1.1" 200 359 "http://localhost:8080/demo/?wms_layer=raster&f
ormat=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/zoom-plus-mini.png HTTP/1.1" 200 489 "http://localhost:8080/demo/?wms_layer=raster&fo
rmat=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /demo/static/img/zoom-world-mini.png HTTP/1.1" 200 1072 "http://localhost:8080/demo/?wms_layer=raster&
format=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:31:03,530 - INFO - 572:mapproxy.client.http.http:_log - 134.92.2.125 - - [27/Dec/2010:13:31:03 ] "GET /cgi-bin/mapserv.exe?styles=&map=D
%3A%5Cgdi%5Cms4w%5Cmap%5Craster_bkg.map&format=image%2Fpng&height=1104&bbox=-48.515625,41.484375,3.515625,90.0&layers=dtk&service=WMS&width=1184&reque
st=GetMap&srs=EPSG%3A4326&version=1.1.1 HTTP/1.1" 500 0 "-" ""
2010-12-27 13:31:03,546 - INFO - 572:mapproxy.client.http.http:_log - 134.92.2.125 - - [27/Dec/2010:13:31:03 ] "GET /cgi-bin/mapserv.exe?styles=&map=D
%3A%5Cgdi%5Cms4w%5Cmap%5Craster_bkg.map&format=image%2Fpng&height=1104&bbox=-3.515625,41.484375,48.515625,90.0&layers=dtk&service=WMS&width=1184&reque
st=GetMap&srs=EPSG%3A4326&version=1.1.1 HTTP/1.1" 500 0 "-" ""
2010-12-27 13:31:03,546 - DEBUG - 572:mapproxy.image:as_buffer - image -> buf(png)
127.0.0.1 - - [27/Dec/2010:13:30:03 +0200] "GET /service?LAYERS=raster&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=
application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-7.91015625,42.1875,18.45703125,59.765625&WIDTH=600&HEIGHT=400 HTTP/1.1" 200 1651 "-" "Mozilla/5
.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"
2010-12-27 13:31:10,812 - INFO - 572:mapproxy.client.http.http:_log - 134.92.2.125 - - [27/Dec/2010:13:31:10 ] "GET /cgi-bin/mapserv.exe?styles=&map=D
%3A%5Cgdi%5Cms4w%5Cmap%5Craster_bkg.map&format=image%2Fpng&height=256&bbox=-180.0,-90.0,180.0,90.0&layers=dtk&service=WMS&width=512&request=GetMap&srs
=EPSG%3A4326&version=1.1.1 HTTP/1.1" 500 0 "-" ""
2010-12-27 13:31:10,828 - DEBUG - 572:mapproxy.image:as_buffer - image -> buf(png)
127.0.0.1 - - [27/Dec/2010:13:30:10 +0200] "GET /service?LAYERS=raster&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=
application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=-210.9375,-140.625,210.9375,140.625&WIDTH=600&HEIGHT=400 HTTP/1.1" 200 1651 "http://localhost:80
80/demo/?wms_layer=raster&format=image%2Fpng" "Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"

Testaufruf funktioniert:
http://localhost/cgi-bin/mapserv.exe?styles=&map=D%3A%5Cgdi%5Cms4w%5Cmap%5Craster_bkg.map&format=image%2Fpng&height=256&bbox=-180.0,-90.0,180.0,90.0&layers=dtk&service=WMS&width=512&request=GetMap&srs=EPSG%3A4326&version=1.1.1
-------------- next part --------------
services:
  demo:
  kml:
  tms:
    # needs no arguments
  wms:
    # srs: ['EPSG:4326', 'EPSG:900913']
    # image_formats: ['image/jpeg', 'image/png']
    attribution:
      text: "© Bundesamt fÌr Strahlenschutz"
    md:
      # metadata used in capabilities documents
      title: MapProxy WMS-BfS Proxy
      abstract: This is the fantastic MapProxy.
      online_resource: http://mapproxy.org/
      contact:
        person: Stefan Schantz
        position: ..
        organization: SW 2.1
        address: IngolstÀdter Landstr. 1
        city: Oberschleißheim
        postcode: 85764
        country: Germany
        phone: +49(0)30-18333-2563
        fax: +49(0)30-18333-2800
        email: sschantz at bfs.de
      access_constraints:
        This service is intended for private and evaluation use only.
        The data is licensed as Creative Commons Attribution-Share Alike 2.0
        (http://creativecommons.org/licenses/by-sa/2.0/)
      fees: 'None'

layers:
  osm:
    title: Omniscale OSM WMS - osm.omniscale.net
    sources: [osm_cache]
  raster:
    title: topografische Karten
    sources: [topo_cache]
  # osm_full_example:
  #   title: Omniscale OSM WMS - osm.omniscale.net
  #   sources: [osm_cache_full_example]
    
caches:
  osm_cache:
    grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
    sources: [osm_wms]
    watermark:
      text: "© Geodaten: BKG"
      opacity: 50
  topo_cache:
    grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
    sources: [topo_wms_bfs]
    watermark:
      text: "© Geodaten: BKG"
      opacity: 50
  
  # osm_cache_full_example:
  #   meta_buffer: 20
  #   meta_size: [5, 5]
  #   format: image/png
  #   request_format: image/tiff
  #   link_single_color_images: true
  #   use_direct_from_level: 5
  #   grids: [grid_full_example]
  #   sources: [osm_wms, overlay_full_example]


sources:
  osm_wms:
    type: wms
    req:
      url: http://osm.omniscale.net/proxy/service?
      layers: osm
  topo_wms_bfs:
    type: wms
    concurrent_requests: 4
    req:
      url: http://134.92.2.125/cgi-bin/mapserv.exe?
      layers: dtk
      map: D:\gdi\ms4w\map\raster_bkg.map
    wms_opts:
      version: 1.1.1
      featureinfo: false

  # overlay_full_example:
  #   type: wms
  #   concurrent_requests: 4
  #   wms_opts:
  #     version: 1.3.0
  #     featureinfo: true
  #   supported_srs: ['EPSG:4326', 'EPSG:31467']
  #   supported_formats: ['image/tiff', 'image/jpeg']
  #   http:
  #     insecure_ssl: true
  #   req:
  #     url: https://user@password:example.org:81/service?
  #     layers: roads,rails
  #     styles: base,base
  #     transparent: true
  #     # # always request in this format
  #     # format: image/png
  #     map: /home/map/mapserver.map
    

grids:
  global_geodetic_sqrt2:
    base: GLOBAL_GEODETIC
    res_factor: 'sqrt2'
  # grid_full_example:
  #   tile_size: [512, 512]
  #   srs: 'EPSG:900913'
  #   bbox: [5, 45, 15, 55]
  #   bbox_srs: 'EPSG:4326'
  #   min_res: 2000 #m/px
  #   max_res: 50 #m/px
  #   align_resolutions_with: GLOBAL_MERCATOR
  # another_grid_full_example:
  #   srs: 'EPSG:900913'
  #   bbox: [5, 45, 15, 55]
  #   bbox_srs: 'EPSG:4326'
  #   res_factor: 1.5
  #   num_levels: 25

globals:
  # # coordinate transformation options
  # srs:
  #   # WMS 1.3.0 requires all coordiates in the correct axis order,
  #   # i.e. lon/lat or lat/lon. Use the following settings to
  #   # explicitly set a CRS to either North/East or East/North
  #   # ordering.
  #   axis_order_ne: ['EPSG:9999', 'EPSG:9998']
  #   axis_order_en: ['EPSG:0000', 'EPSG:0001']
  #   # you can set the proj4 data dir here, if you need custom
  #   # epsg definitions. the path must contain a file named 'epsg'
  #   # the format of the file is:
  #   # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>
  #   proj_data_dir: '/path to dir that contains epsg file'

  # # cache options
  # cache:
  #   # where to store the cached images
  #   base_dir: '../var/cache_data'
  #   # where to store lockfiles
  #   lock_dir: '../tmp/tile_locks'
  #   # request x*y tiles in one step
  #   meta_size: [4, 4]
  #   # add a buffer on all sides (in pixel) when requesting
  #   # new images
  #   meta_buffer: 80


  # image/transformation options
  image:
      resampling_method: nearest
      # resampling_method: bilinear
      # resampling_method: bicubic
  #     jpeg_quality: 90
  #     # stretch cached images by this factor before
  #     # using the next level
  #     stretch_factor: 1.15
  #     # shrink cached images up to this factor before
  #     # returning an empty image (for the first level)
  #     max_shrink_factor: 4.0


More information about the MapProxy mailing list