[MapProxy] Asking for help to configure mapproxy server with govmap.co.il esri cache

דוד בן-יוסף davidbenyos at gmail.com
Mon Jun 6 13:09:58 PDT 2022


Hi,

Since the last few days I have been trying to configure a mapproxy server
to consume israel govmap services as tms service.

Govmap is using esri cache with srs 2039 grid

Example for Tel-Aviv tile with govmap:
https://cdn.govmap.gov.il/020522B0B20R/L03/R0000017d/C00000149.jpg

While I want to consume it with webmercator grid like openstreetmap:
https://a.tile.openstreetmap.org/12/2443/1662.png

I tried to create an inner cache as mentioned in some post I found, but no
luck.

Rest call example:
http://localhost:8080/tiles/1.0.0/gov/webmercator/12/2443/1662.png

Seems like the server is not triggering a rest call for any input, and just
sending an empty tile.

Server configuration:

services:
  #sets up how to make the source data available
  demo:
  tms:
    use_grid_names: true
    # origin for /tiles service
    origin: 'nw'



layers:
  #sets up which layers you want to make available using the services
above. You can add many, but let's stick to osm data here.
  - name: gov      # access in JOSM as TMS:
http://localhost:8080/tiles/1.0.0/osm_demo/webmercator/{zoom}/{x}/{y}.png
    title: GovMap
    sources: [gov_cache]

caches:
  #setup the cache for the open streetmap tiles. This cache is used by the
layer above.
  gov_cache:
    grids: [webmercator]
    meta_size: [4, 4]
    sources: [gov_cache_in]

  gov_cache_in:
    grids: [utm]
    disable_storage: true
    sources: [govmap]

sources:
  govmap:
    type: tile
    url: https://cdn.govmap.gov.il/020522B0B20R/%(arcgiscache_path)s.jpg
    grid: utm

grids:
  webmercator:
    base: GLOBAL_WEBMERCATOR
  utm:
    srs: 'EPSG:2039'
    bbox: [1188286, -713158,993050 ,-713158]
    res: [793.751587503175, 264.583862501058, 132.291931250529,
66.1459656252646, 26.4583862501058, 13.2291931250529, 6.61459656252646,
2.64583862501058, 1.32291931250529, 0.661459656252646, 0.330729828126323,
0.132291931250529]
    num_levels: 12
    #origin: nw

globals:
  #next are some global configuration options for MapProxy. They mostly
explain themselves, or can be looked-up in the MapProxy docs.
  cache:
    # where to store the cached images
    base_dir: './cache_data'
    # where to store lockfiles
    lock_dir: './cache_data/locks'


Any help will be appreciated

Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20220606/40d5d282/attachment.htm>


More information about the MapProxy mailing list