Advertisement
Guest User

Untitled

a guest
Dec 28th, 2011
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.50 KB | None | 0 0
  1. services:
  2.   demo:
  3.   kml:
  4.   tms:
  5.     # needs no arguments
  6.   wms:
  7.     # srs: ['EPSG:4326', 'EPSG:900913']
  8.     # image_formats: ['image/jpeg', 'image/png']
  9.     md:
  10.       # metadata used in capabilities documents
  11.       title: MapProxy WMS Proxy
  12.       abstract: This is the fantastic MapProxy.
  13.       online_resource: http://mapproxy.org/
  14.       contact:
  15.         person: Martin Kokeš
  16.         position: Technical Director
  17.         organization: TYPO3 hosting
  18.         address: Dašická 1253
  19.         city: Pardubice
  20.         postcode: 53003
  21.         country: Czech Republic
  22.         phone: +420777136677
  23.         fax:
  24.         email: info@typo3-hosting.com
  25.       access_constraints:
  26.         This service is intended for private and evaluation use only.
  27.         The data is licensed as Creative Commons Attribution-Share Alike 2.0
  28.         (http://creativecommons.org/licenses/by-sa/2.0/)
  29.       fees: 'None'
  30.  
  31. layers:
  32.   - name: osm
  33.     title: Omniscale OSM WMS - osm.omniscale.net
  34.     sources: [osm_cache]
  35.   # - name: osm_full_example
  36.   #   title: Omniscale OSM WMS - osm.omniscale.net
  37.   #   sources: [osm_cache_full_example]
  38.  
  39.   - name: cuzk_ortofoto
  40.     title: ČÚZK Ortofoto
  41.     sources: [cuzk_ortofoto_cache]
  42.    
  43. caches:
  44.   osm_cache:
  45.     grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
  46.     sources: [osm_wms]
  47.  
  48.   cuzk_ortofoto_cache:
  49.     grids: [GLOBAL_MERCATOR, global_geodetic_sqrt2]
  50.     sources: [cuzk_ortofoto_wms]
  51.  
  52.   # osm_cache_full_example:
  53.   #   meta_buffer: 20
  54.   #   meta_size: [5, 5]
  55.   #   format: image/png
  56.   #   request_format: image/tiff
  57.   #   link_single_color_images: true
  58.   #   use_direct_from_level: 5
  59.   #   grids: [grid_full_example]
  60.   #   sources: [osm_wms, overlay_full_example]
  61.  
  62.  
  63. sources:
  64.   osm_wms:
  65.     type: wms
  66.     req:
  67.       url: http://osm.omniscale.net/proxy/service?
  68.       layers: osm
  69.  
  70.   cuzk_ortofoto_wms:
  71.     type: wms
  72.     wms_opts:
  73.       version: 1.3.0
  74.     supported_srs: ['EPSG:102067']
  75.     req:
  76.       url: http://geoportal.cuzk.cz/WMS_ORTOFOTO_PUB/service.svc/get
  77.       layers: GR_ORTFOTORGB
  78.  
  79.   # overlay_full_example:
  80.   #   type: wms
  81.   #   concurrent_requests: 4
  82.   #   wms_opts:
  83.   #     version: 1.3.0
  84.   #     featureinfo: true
  85.   #   supported_srs: ['EPSG:4326', 'EPSG:31467']
  86.   #   supported_formats: ['image/tiff', 'image/jpeg']
  87.   #   http:
  88.   #     ssl_no_cert_checks: true
  89.   #   req:
  90.   #     url: https://user:password@example.org:81/service?
  91.   #     layers: roads,rails
  92.   #     styles: base,base
  93.   #     transparent: true
  94.   #     # # always request in this format
  95.   #     # format: image/png
  96.   #     map: /home/map/mapserver.map
  97.    
  98.  
  99. grids:
  100.   global_geodetic_sqrt2:
  101.     base: GLOBAL_GEODETIC
  102.     res_factor: 'sqrt2'
  103.   # grid_full_example:
  104.   #   tile_size: [512, 512]
  105.   #   srs: 'EPSG:900913'
  106.   #   bbox: [5, 45, 15, 55]
  107.   #   bbox_srs: 'EPSG:4326'
  108.   #   min_res: 2000 #m/px
  109.   #   max_res: 50 #m/px
  110.   #   align_resolutions_with: GLOBAL_MERCATOR
  111.   # another_grid_full_example:
  112.   #   srs: 'EPSG:900913'
  113.   #   bbox: [5, 45, 15, 55]
  114.   #   bbox_srs: 'EPSG:4326'
  115.   #   res_factor: 1.5
  116.   #   num_levels: 25
  117.  
  118. globals:
  119.   # # coordinate transformation options
  120.   # srs:
  121.   #   # WMS 1.3.0 requires all coordiates in the correct axis order,
  122.   #   # i.e. lon/lat or lat/lon. Use the following settings to
  123.   #   # explicitly set a CRS to either North/East or East/North
  124.   #   # ordering.
  125.   #   axis_order_ne: ['EPSG:9999', 'EPSG:9998']
  126.   #   axis_order_en: ['EPSG:0000', 'EPSG:0001']
  127.   #   # you can set the proj4 data dir here, if you need custom
  128.   #   # epsg definitions. the path must contain a file named 'epsg'
  129.   #   # the format of the file is:
  130.   #   # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs  <>
  131.   #   proj_data_dir: '/path to dir that contains epsg file'
  132.  
  133.   # # cache options
  134.   cache:
  135.     # where to store the cached images
  136.     base_dir: './cache_data'
  137.     # where to store lockfiles
  138.     lock_dir: './cache_data/locks'
  139.   #   # request x*y tiles in one step
  140.   #   meta_size: [4, 4]
  141.   #   # add a buffer on all sides (in pixel) when requesting
  142.   #   # new images
  143.   #   meta_buffer: 80
  144.  
  145.  
  146.   # image/transformation options
  147.   image:
  148.       resampling_method: nearest
  149.       # resampling_method: bilinear
  150.       # resampling_method: bicubic
  151.   #     jpeg_quality: 90
  152.   #     # stretch cached images by this factor before
  153.   #     # using the next level
  154.   #     stretch_factor: 1.15
  155.   #     # shrink cached images up to this factor before
  156.   #     # returning an empty image (for the first level)
  157.   #     max_shrink_factor: 4.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement