Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have any local tiles (seed via Mapproxy) of any local area. May I configure mapproxy that I can use a local tile directory on my computer as a source and get the output then WMS ? I've already configured mapproxy.yaml which has this lines: services:

demo:
  wms:
    srs: ['EPSG:3857', 'EPSG:4326', 'EPSG:3395']
    # image_formats: ['image/jpeg', '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@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: Testing tiles
    title: Testing tiles
    sources: [osm_cached]
caches:
  osm_cached:
    grids: [gmaps_grid]
    sources: []
    cache:
     type: file
     directory_layout: tms

grids:
  gmaps_grid:
    tile_size: [256, 256]
    srs: EPSG:3857
    origin: nw

But cannot see the results, just empty page whout scrolling Please explain should I use cache->directory_layoutORdirectory? If so how does it look?

share|improve this question
add comment

1 Answer

Accordingly MapProxy documentation sources parameter of caches section is mandatory, but as I can see you use empty list. You should point source of your cache. If you are planning to use your source only during the seeding process - option seed_only may be helpful.

share|improve this answer
    
Thanx, Denis I'll check your suggestions. –  Andrey Maraev Apr 10 '13 at 7:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.