Virginia/VBMP MapProxy

From OpenStreetMap Wiki
Jump to navigation Jump to search

Below is the mapproxy.yaml file I've created for the VBMP ArcGIS REST tile interface. The arcgiscache URLs require MapProxy 1.0.0a (aka trunk as of 25 Mar 2011), otherwise use the MapServer URLs as seen with vbmp_2007_rest_tile.

I don't have the resources to host this for others, so I'm providing this information for others to create their own personal proxies.

If you have resources to host this for others, please do so and let others know on the list and on this page. It would be greatly appreciated!

These are the URLs suitable for JOSM:

services:
  demo:
  kml:
  tms:
    # needs no arguments
  wms:
    srs: ['EPSG:4326', 'EPSG:900913']
    image_formats: ['image/png', 'image/jpeg']
    md:
      # metadata used in capabilities documents
      title: VBMP Proxy
      abstract: This is MapProxy serving the tiles from the VGIN ArcGIS REST tile interface, specifically the VBMP orthoimagery.
      access_constraints:
        This service is intended for private and evaluation use only.
        The data is in the public domain.
      fees: 'None'

layers:
  vbmp_2007:
    title: 'VBMP 2006/2007 Orthoimagery'
    sources: [vbmp_2007_cache]
  vbmp_2007_mercator:
    title: 'VBMP 2006/2007 Orthoimagery - Mercator'
    sources: [vbmp_2007_mercator_cache]
  vbmp_2002:
    title: 'VBMP 2002 Orthoimagery'
    sources: [vbmp_2002_cache]
  vbmp_2002_mercator:
    title: 'VBMP 2002 Orthoimagery - Mercator'
    sources: [vbmp_2002_mercator_cache]

caches:
  vbmp_2007_cache:
    grids: [vbmp_grid]
    sources: [vbmp_2007_cache]
  vbmp_2007_mercator_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [vbmp_2007_mercator]
  vbmp_2002_cache:
    grids: [vbmp_grid]
    sources: [vbmp_2002_cache]
  vbmp_2002_mercator_cache:
    grids: [GLOBAL_MERCATOR]
    sources: [vbmp_2002_mercator]

sources:
  vbmp_2007_mercator:
    type: wms
    req:
      url: http://joshdoe.com:80/mapproxy/service?
      layers: vbmp_2007
#    coverage:
#      bbox: [-384269.977874641, -48883.4062351487, 404548.778455541, 476583.633639972]
#      bbox_srs: 'SR-ORG:6639'
    supported_srs: ['EPSG:900913', 'EPSG:4326']

  vbmp_2007_cache:
    type: tile
    url: 'http://gismaps.virginia.gov/arcgisserver_COVDBICES-MCL08/arcgiscache/VBMP2006_2007/Layers/_alllayers/%(arcgiscache_path)s.jpg'
    grid: vbmp_grid
    origin: nw
    coverage:
      bbox: [-384269.977874641, -48883.4062351487, 404548.778455541, 476583.633639972]
      bbox_srs: 'SR-ORG:6639'

  vbmp_2007_rest_tile:
    type: tile
    url: 'http://gismaps.virginia.gov/arcgis2/rest/services/VBMP2006_2007/MapServer/tile/%(z)s/%(y)s/%(x)s'
    grid: vbmp_grid
    origin: nw
    coverage:
      bbox: [-384269.977874641, -48883.4062351487, 404548.778455541, 476583.633639972]
      bbox_srs: 'SR-ORG:6639'

  vbmp_2002_mercator:
    type: wms
    req:
      url: http://joshdoe.com:80/mapproxy/service?
      layers: vbmp_2002
#    coverage:
#      bbox: [-384269.977874641, -48883.4062351487, 404548.778455541, 476583.633639972]
#      bbox_srs: 'SR-ORG:6639'
    supported_srs: ['EPSG:900913', 'EPSG:4326']

  vbmp_2002_cache:
    type: tile
    url: 'http://gismaps.virginia.gov/arcgisserver_COVDBICES-MCL08/arcgiscache/VBMP2002/Layers/_alllayers/%(arcgiscache_path)s.jpg'
    grid: vbmp_grid
    origin: nw
    coverage:
      bbox: [-384269.977874641, -48883.4062351487, 404548.778455541, 476583.633639972]
      bbox_srs: 'SR-ORG:6639'


grids:
  vbmp_grid:
    srs: 'SR-ORG:6639'
    tile_size: [512, 512]
    res: [1058.33545000423, 423.334180001693, 211.667090000847, 105.833545000423, 52.9167725002117, 26.4583862501058, 12.7000254000508, 6.3500127000254, 3.1750063500127, 2.11667090000847, 1.27000254000508, 0.63500127000254, 0.31750063500127]
    # since origin is nw, only min_x/max_y are critical,
    # just ensure other corner is south-east of Virginia
    bbox: [-37232800, -3187097.536, 1781678.029, 45581000]

globals:
  image:
      jpeg_quality: 90
      resampling_method: bilinear