[MapProxy] WMTS GetCapabilities

Raffaello Bertini raffaellobertini at gmail.com
Mon Oct 15 10:36:32 PDT 2012


> And in the Demo app when i click on "WMTS view capabilieties html page"
> I've got this MapProxy error:
I forgot to say that in the webage dispaly "internal error"
here's the config file

services:
  demo:
  kml:
  tms:
    # needs no arguments
  wmts:
  wms:
    #srs: ['EPSG:4326', 'EPSG:900913']
    #srs: ['EPSG:4326', 'EPSG:3857']
    #srs: ['EPSG:4326', 'EPSG:900913', 'EPSG:3857']
    srs: ['EPSG:4326']

    image_formats: ['image/jpeg', 'image/png']
    #image_formats: ['image/png']
    md:
      # metadata used in capabilities documents
      title: MapProxy WMS Proxy
      abstract: This is the fantastic MapProxy.
      online_resource: http://mapproxy.org/
      contact:
        person: Your Name Here
        position: Technical Director
        organization:
        address: Fakestreet 123
        city: Somewhere
        postcode: 12345
        country: Germany
        phone: +49(0)000-000000-0
        fax: +49(0)000-000000-0
        email: info at omniscale.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:
  - name: mapnik_layers
    title: mapnik_layers
    sources: [mapnik_cache]

caches:
   mapnik_cache:
    grids: [global_WSG84]
    sources: [mapnik_source]
    meta_buffer: 20
    meta_size: [4, 4]
    format: image/png
    request_format: image/png, image/jpg
    link_single_color_images: true

sources:
  mapnik_source:
    type: mapnik
    use_mapnik2: true
    mapfile: C:\mapnik-2.0.1rc0\osm.xml

grids:
  global_WSG84:
    #origin: nw
    base: GLOBAL_GEODETIC
    #srs: 'EPSG:4326'
    num_levels: 22

  global_geodetic_sqrt2:
    base: GLOBAL_GEODETIC
    res_factor: 'sqrt2'

globals:
  # cache options
  cache:
    # where to store the cached images
    base_dir: 'C:/mapproxy_venv/cache_data'
    # where to store lockfiles
    lock_dir: 'C:/mapproxy_venv/cache_data/locks'
    # parallel thread
    concurrent_tile_creators: 4
  #   # 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: bicubic



2012/10/15 Oliver Tonnhofer <olt at omniscale.de>

>
> On 13.10.2012, at 22:19, Raffaello Bertini wrote:
>
> > in the demo app inside mapproxy WMTS work properly, WMS too
> > But when I tried to access with openlayers I've got a bad request (no
> image)
> > And in the Demo app when i click on "WMTS view capabilieties html page"
> > I've got this MapProxy error:
>
>
> You grid is not compatible with WMTS.
> Can you post your complete configuration?
>
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
> http://mapproxy.org | https://github.com/olt    | @oltonn
>
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20121015/18e73e96/attachment.html>


More information about the MapProxy mailing list