跳转到主要内容

超级商业

项目描述

supermercado

Build Status codecov.io

supermercado通过添加额外的命令扩展了mercantile的功能

安装

从pypi

pip install supermercado

本地开发

git clone git@github.com:mapbox/supermercado.git
cd supermercado
pip install -e .

使用

Usage: supermercado [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  burn   Burn a stream of GeoJSON into a output...
  edges  For a stream of [<x>, <y>, <z>] tiles, return...
  union  Returns the unioned shape of a stream of...

supermercado burn

<{geojson} stream> | supermercado burn <zoom> | <[x, y, z] stream>

接受GeoJSON输入流,并返回给定缩放级别下相交的[x, y, z]流。

image

cat data/ellada.geojson | supermercado burn 10 | mercantile shapes | fio collect

image

supermercado edges

<[x, y, z] stream> | supermercado edges | <[x, y, z] stream>

输出表示输入流中[x, y, z]边界的[x, y, z]流。边界瓦片是指与不存在瓦片直接相邻或与空瓦片对角相邻的任何瓦片。

cat data/ellada.geojson | supermercado burn 10 | supermercado edges | mercantile shapes | fio collect | geojsonio

image

supermercado union

<[x, y, z] stream> | supermercado union | <{geojson} stream>

输出从输入流中[x, y, z]的并集GeoJSON。类似于mercantile shapes,但作为整体足迹而不是每个瓦片的单独形状。

cat data/ellada.geojson | supermercado burn 10 | supermercado union | fio collect | geojsonio

image

疯狂一点

cat data/ellada.geojson | supermercado burn 12 | supermercado edges | supermercado union | fio collect | geojsonio

image

项目详情


下载文件

下载适用于您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

supermercado-0.2.0.tar.gz (8.2 kB 查看哈希值)

上传时间

构建分布

supermercado-0.2.0-py3-none-any.whl (8.1 kB 查看哈希值)

上传时间 Python 3

由以下支持