为MapProxy添加HIPS功能的插件
项目描述
mapproxy-hips是MapProxy(http://mapproxy.github.io/mapproxy/)的插件,提供OGC服务(WMS、WMTS等)与IVOA的HiPS协议(https://www.ivoa.net/documents/HiPS/)之间的互操作性扩展。
该插件需要MapProxy >= 1.15,它包含mapproxy-hips使用的插件架构(http://mapproxy.github.io/mapproxy/plugins.html)。
快速入门
python3 -m venv myvenv
source myvenv/bin/activate
pip install mapproxy_hips
git clone https://github.com/rouault/mapproxy_hips
mapproxy-util serve-develop mapproxy_hips/hips_examples/ogc_as_hips/mapproxy.yaml &
curl https://:8080/hips/mars_tiled_geodetic/properties
添加HIPS服务
公开HIPS服务(即MapProxy的输出作为HIPS)需要在MapProxy配置文件中的services下声明hips项目。
services:
hips:
#resampling_method: nearest_neighbour
resampling_method: bilinear
#resampling_method: bicubic
# populate_cache: false
并且通常需要为每个公开的图层自定义HIPS元数据
layers:
- name: my_layer_name
title: my title
sources: [my_source]
md:
hips:
# enabled: false
creator_did: ivo://unknown.authority/some_id
obs_title: Some title
# foo: bar
# hips_tile_width: 512
# hips_order: 5
请参阅https://github.com/rouault/mapproxy_hips/blob/master/hips_examples/ogc_as_hips/mapproxy.yaml以获取完整示例。
实用工具
可以使用的mapproxy-util脚本的hips-allsky命令可以生成某些HIPS消费者所需的全部天空文件。
Usage: mapproxy-util hips-allsky [options] -f mapproxy_conf -l layer
Options:
-h, --help show this help message and exit
-f MAPPROXY_CONF, --mapproxy-conf=MAPPROXY_CONF
MapProxy configuration.
-l LAYER, --layer=LAYER
Layer
-o NORDER, --norder=NORDER
Order
-c CONCURRENCY, --concurrency=CONCURRENCY
number of parallel processes
可以使用的mapproxy-util脚本的hips-seed命令可以预先生成HIPS瓦片。
Usage: mapproxy-util hips-seed [options] -f mapproxy_conf -l layer
Options:
-h, --help show this help message and exit
-f MAPPROXY_CONF, --mapproxy-conf=MAPPROXY_CONF
MapProxy configuration.
-l LAYER, --layer=LAYER
Layer
-o NORDER, --norder=NORDER
Order
-c CONCURRENCY, --concurrency=CONCURRENCY
number of parallel processes
添加HIPS源
添加HIPS源(即HIPS作为MapProxy的输入)需要在源声明中指定类型:hips,并指定HIPS服务的URL和图像格式。
sources:
mars_hips_source:
type: hips
image:
format: image/jpeg
resampling_method: bilinear
url: http://alasky.u-strasbg.fr/Planets/Mars_MOLA
# cache_hips_tiles: false
有关完整示例,请参阅https://github.com/rouault/mapproxy_hips/blob/master/hips_examples/hips_source/mapproxy.yaml。
致谢
该项目由法国国家空间研究中心(CNES,https://cnes.fr)在“行星表面数据和服务中心”(PDSSP)项目框架内资助。
项目详情
mapproxy_hips-0.2.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | ae44a065403e766bf71cfe66d8f5c6c4df423724098025b6b065d08541482bb0 |
|
MD5 | 2bb7274d8d280f985d19a20ef5ea0b7c |
|
BLAKE2b-256 | 92b97804619d60ce8d0cafca8137a73133f8226d008c9dd494507a4a82ea56b5 |