跳转到主要内容

为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 (24.0 kB 查看哈希值

上传时间

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面