Supercharged mercantile
Project description
supermercado
supermercado
extends the functionality of mercantile
with additional commands
Installation
From pypi
pip install supermercado
To develop locally
git clone git@github.com:mapbox/supermercado.git
cd supermercado
pip install -e .
Usage
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>
Takes an input stream of GeoJSON and returns a stream of intersecting [x, y, z]
s for a given zoom.
cat data/ellada.geojson | supermercado burn 10 | mercantile shapes | fio collect
supermercado edges
<[x, y, z] stream> | supermercado edges | <[x, y, z] stream>
Outputs a stream of [x, y, z]
s representing the edge tiles of an input stream of [x, y, z]
s. Edge tile = any tile that is either directly adjacent to a tile that does not exist, or diagonal to an empty tile.
cat data/ellada.geojson | supermercado burn 10 | supermercado edges | mercantile shapes | fio collect | geojsonio
supermercado union
<[x, y, z] stream> | supermercado union | <{geojson} stream>
Outputs a stream of unioned GeoJSON from an input stream of [x, y, z]
s. Like mercantile shapes
but as an overall footprint instead of individual shapes for each tile.
cat data/ellada.geojson | supermercado burn 10 | supermercado union | fio collect | geojsonio
getting crazy
cat data/ellada.geojson | supermercado burn 12 | supermercado edges | supermercado union | fio collect | geojsonio
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
supermercado-0.2.0.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for supermercado-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3aab2a0992e324cee83653fb5166781bed92c35d29ae4181125d6a9da1bf222 |
|
MD5 | 2240b504a28f8e3374b7bb6b0dc0870a |
|
BLAKE2b-256 | 55d326d557543a6fa3a9dc90c8a67059b455a4de7ea73fd85df290f4259c08d9 |