[MapProxy] mapproxy-seed - Create OSM like tile structure
Debasish Sahu
debasish.sahu at gmail.com
Fri Feb 11 00:56:26 EST 2011
Hi Oliver:
Many thanks for the help. Please find below the contents of seed.yaml and
mapproxy.yaml
seed.yaml
------------------
views:
myview:
bbox: [8596550.829, 3340667.637, 8598788.35, 3342816.079]
bbox_srs: EPSG:900913
level: [14, 16]
srs: ['EPSG:900913']
seeds:
osm_cache:
views: ['myview']
remove_before:
time: '2010-02-20T16:00:00'
#osm_roads:
# views: ['germany']
# remove_before:
# days: 30
mapproxy.yaml
-----------------------
services:
demo:
kml:
tms:
# needs no arguments
wms:
# srs: ['EPSG:4326', 'EPSG:900913']
# 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 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:
osm:
title: Omniscale OSM WMS - osm.omniscale.net
sources: [osm_cache]
# osm_full_example:
# title: Omniscale OSM WMS - osm.omniscale.net
# sources: [osm_cache_full_example]
caches:
osm_cache:
grids: [GLOBAL_MERCATOR]
sources: [osm_wms]
# osm_cache_full_example:
# meta_buffer: 20
# meta_size: [5, 5]
# format: image/png
# request_format: image/tiff
# link_single_color_images: true
# use_direct_from_level: 5
# grids: [grid_full_example]
# sources: [osm_wms, overlay_full_example]
sources:
osm_wms:
type: wms
req:
url: http://xyz:8080/geoserver/wms?
version: 1.1.0
layers: streets
transparent: true
coverage:
bbox: [8596550.829, 3340667.637, 8598788.35, 3342816.079]
bbox_srs: 'EPSG:900913'
# overlay_full_example:
# type: wms
# concurrent_requests: 4
# wms_opts:
# version: 1.3.0
# featureinfo: true
# supported_srs: ['EPSG:4326', 'EPSG:31467']
# supported_formats: ['image/tiff', 'image/jpeg']
# http:
# ssl_no_cert_checks: true
# req:
# url: https://user@password:example.org:81/service?
# layers: roads,rails
# styles: base,base
# transparent: true
# # # always request in this format
# # format: image/png
# map: /home/map/mapserver.map
grids:
mygrid:
srs: 'EPSG:900913'
bbox: [-20037508.34, -20037508.34, 20037508.34, 20037508.34]
bbox_srs: EPSG:900913
# grid_full_example:
# tile_size: [512, 512]
# srs: 'EPSG:900913'
# bbox: [5, 45, 15, 55]
# bbox_srs: 'EPSG:4326'
# min_res: 2000 #m/px
# max_res: 50 #m/px
# align_resolutions_with: GLOBAL_MERCATOR
# another_grid_full_example:
# srs: 'EPSG:900913'
# bbox: [5, 45, 15, 55]
# bbox_srs: 'EPSG:4326'
# res_factor: 1.5
# num_levels: 25
globals:
# # coordinate transformation options
# srs:
# # WMS 1.3.0 requires all coordiates in the correct axis order,
# # i.e. lon/lat or lat/lon. Use the following settings to
# # explicitly set a CRS to either North/East or East/North
# # ordering.
# axis_order_ne: ['EPSG:9999', 'EPSG:9998']
# axis_order_en: ['EPSG:0000', 'EPSG:0001']
# # you can set the proj4 data dir here, if you need custom
# # epsg definitions. the path must contain a file named 'epsg'
# # the format of the file is:
# # <4326> +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs <>
# proj_data_dir: '/path to dir that contains epsg file'
# # cache options
# cache:
# # where to store the cached images
# base_dir: '../var/cache_data'
# # where to store lockfiles
# lock_dir: '../tmp/tile_locks'
# # 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: nearest
# resampling_method: bilinear
# resampling_method: bicubic
# jpeg_quality: 90
# # stretch cached images by this factor before
# # using the next level
# stretch_factor: 1.15
# # shrink cached images up to this factor before
# # returning an empty image (for the first level)
# max_shrink_factor: 4.0
Cheers
Debs
On Thu, Feb 10, 2011 at 11:06 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 10.02.2011, at 18:17, Debasish Sahu wrote:
>
> > Find below the mapproxy and seed yaml
> >
> > seed.yaml
> >
> > views:
> > myview:
> > bbox: [8596550.829, 3340667.637, 8598788.35, 3342816.079]
> > bbox_srs: EPSG:900913
> > level: [5,6]
>
> I need your actual configuration. With that seed configuration, there
> shouldn't be any tiles in level 14. You are only seeding level 5 and 6.
>
> Regards,
> Oliver
--
Thanks and Warm Regards
Debasish Sahu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20110211/783165a6/attachment-0001.html
More information about the MapProxy
mailing list