Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimium viable protobuf serving #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mvanveen
Copy link

@mvanveen mvanveen commented Aug 1, 2016

⚠️ very early development branch

I've narrowed down some changes which get mapproxy working with tegola. It works with the tegola preview tool and successfully proxies and caches at different scales.

In general mapproxy primitives seem to heavily assume raster images, so a lot more refactoring work may be necessary to get this upstream.

I point the tegola preview HTML file layer url value to http://localhost:8080/tms/1.0.0/terranodo/webmercator/{z}/{x}/{y}.pbf
Here is my mapproxy.yaml:

Note: I sometimes use application/pbf instead of application/x-protobuf due to current design constraints within mapproxy.

# -------------------------------
# MapProxy example configuration.
# -------------------------------
#
# This is a minimal MapProxy configuration.
# See full_example.yaml and the documentation for more options.
#

# Starts the following services:
# Demo:
#     http://localhost:8080/demo
# WMS:
#     capabilities: http://localhost:8080/service?REQUEST=GetCapabilities
# WMTS:
#     capabilities: http://localhost:8080/wmts/1.0.0/WMTSCapabilities.xml
#     first tile: http://localhost:8080/wmts/osm/webmercator/0/0/0.png
# Tile service (compatible with OSM/etc.)
#     first tile: http://localhost:8080/tiles/osm/webmercator/0/0/0.png
# TMS:
#     note: TMS is not compatible with OSM/Google Maps/etc.
#     fist tile: http://localhost:8080/tms/1.0.0/osm/webmercator/0/0/0.png
# KML:
#     initial doc: http://localhost:8080/kml/osm/webmercator

services:
  demo:
  tms:
    use_grid_names: true
    # origin for /tiles service
    origin: 'nw'
  kml:
      use_grid_names: true
  wmts:
  wms:
    md:
      title: MapProxy WMS Proxy
      abstract: This is a minimal MapProxy example.

layers:
  - name: terranodo
    title: Omniscale OSM WMS - osm.omniscale.net
    sources: [terranodo_cache]

caches:
  terranodo_cache:
    grids: [webmercator]
    sources: [terranodo]
    format: application/pbf

sources:
  terranodo:
    type: tile
    url: http://localhost:9090/maps/world_borders/%(z)s/%(x)s/%(y)s.vector.pbf?debug=true
    image:
        formats:
          pbf:
            format: application/pbf
            mode: P
            transparent: false
grids:
    webmercator:
        base: GLOBAL_WEBMERCATOR

globals:

weskamm pushed a commit that referenced this pull request Nov 24, 2023
weskamm pushed a commit that referenced this pull request Nov 24, 2023
Stale tile error handler

test for latest version of pillow failed, see PR mapproxy#530
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant