| MORECANTILE(1) | User Commands | MORECANTILE(1) |
NAME¶
morecantile - CLI for the morecantile Python package
SYNOPSIS¶
morecantile [OPTIONS] COMMAND [ARGS]...
DESCRIPTION¶
- Command line interface for the Morecantile Python package.
OPTIONS¶
- -v, --verbose
- Increase verbosity.
- -q, --quiet
- Decrease verbosity.
- --version
- Show the version and exit.
- --help
- Show this message and exit.
Commands:¶
SYNOPSIS¶
morecantile custom [OPTIONS]
DESCRIPTION¶
- Create Custom TMS.
OPTIONS¶
- --epsg INTEGER
- EPSG number. [required]
- --extent FLOAT...
- left, bottom, right, top Bounding box of the Tile Matrix Set. [required]
- --name TEXT
- Identifier of the custom TMS.
- --minzoom INTEGER
- Minimum Zoom level.
- --maxzoom INTEGER
- Maximum Zoom level.
- --tile-width INTEGER
- Width of each tile.
- --tile-height INTEGER
- Height of each tile.
- --extent-epsg INTEGER
- EPSG number for the bounding box.
- --title TEXT
- Tile Matrix Set title.
- --help
- Show this message and exit.
SYNOPSIS¶
morecantile shapes [OPTIONS] [INPUT]
DESCRIPTION¶
- Reads one or more Web Mercator tile descriptions from stdin and writes either a GeoJSON feature collection (the default) or a JSON sequence of GeoJSON features/collections to stdout.
- Input may be a compact newline-delimited sequences of JSON or a prettyprinted ASCII RS-delimited sequence of JSON (like https://tools.ietf.org/html/rfc8142 and https://tools.ietf.org/html/rfc7159).
- Tile descriptions may be either an [x, y, z] array or a JSON object of the form {"tile": [x, y, z], "properties": {"name": "foo", ...}}
- In the latter case, the properties object will be used to update the properties object of the output feature.
OPTIONS¶
- --identifier [CDB1GlobalGrid|CanadianNAD83_LCC|EuropeanETRS89_LAEAQuad|GNOSISGlobalGrid|LINZAntarticaMapTilegrid|NZTM2000Quad|UPSAntarcticWGS84Quad|UPSArcticWGS84Quad|UTM31WGS84Quad|WGS1984Quad|WebMercatorQuad|WorldCRS84Quad|WorldMercatorWGS84Quad]
- TileMatrixSet identifier.
- --precision INTEGER
- Decimal precision of coordinates.
- --indent INTEGER
- Indentation level for JSON output
- --compact / --no-compact
- Use compact separators (',', ':').
- --projected / --geographic
- Output coordinate system
- --seq
- Write a RS-delimited JSON sequence (default is LF).
- --feature
- Output as sequence of GeoJSON features (the default).
- --bbox
- Output as sequence of GeoJSON bbox arrays.
- --collect
- Output as a GeoJSON feature collections.
- --extents / --no-extents
- Write shape extents as ws-separated strings (default is False).
- --buffer FLOAT
- Shift shape x and y values by a constant number
- --tms PATH
- Path to TileMatrixSet JSON file.
- --crs TEXT
- Geographic CRS. Default to WGS84.
- --help
- Show this message and exit.
SYNOPSIS¶
morecantile tiles [OPTIONS] [ZOOM] [INPUT]
DESCRIPTION¶
- Lists TMS tiles at ZOOM level intersecting GeoJSON [west, south, east, north] bounding boxen, features, or collections read from stdin. Output is a JSON [x, y, z] array.
- Input may be a compact newline-delimited sequences of JSON or a prettyprinted ASCII RS-delimited sequence of JSON (like https://tools.ietf.org/html/rfc8142 and https://tools.ietf.org/html/rfc7159).
- Example: $ echo "[-105.05, 39.95, -105, 40]" | morecantiles tiles 12 Output: [852, 1550, 12] [852, 1551, 12] [853, 1550, 12] [853, 1551, 12]
OPTIONS¶
- --identifier [CDB1GlobalGrid|CanadianNAD83_LCC|EuropeanETRS89_LAEAQuad|GNOSISGlobalGrid|LINZAntarticaMapTilegrid|NZTM2000Quad|UPSAntarcticWGS84Quad|UPSArcticWGS84Quad|UTM31WGS84Quad|WGS1984Quad|WebMercatorQuad|WorldCRS84Quad|WorldMercatorWGS84Quad]
- TileMatrixSet identifier.
- --seq / --lf
- Write a RS-delimited JSON sequence (default is LF).
- --tms PATH
- Path to TileMatrixSet JSON file.
- --help
- Show this message and exit.
SYNOPSIS¶
morecantile tms [OPTIONS]
DESCRIPTION¶
- Print TMS JSON.
OPTIONS¶
- --identifier [CDB1GlobalGrid|CanadianNAD83_LCC|EuropeanETRS89_LAEAQuad|GNOSISGlobalGrid|LINZAntarticaMapTilegrid|NZTM2000Quad|UPSAntarcticWGS84Quad|UPSArcticWGS84Quad|UTM31WGS84Quad|WGS1984Quad|WebMercatorQuad|WorldCRS84Quad|WorldMercatorWGS84Quad]
- TileMatrixSet identifier. [required]
- --help
- Show this message and exit.
SYNOPSIS¶
morecantile tms-to-geojson [OPTIONS] [INPUT]
DESCRIPTION¶
- Print TMS document as GeoJSON.
OPTIONS¶
- --level INTEGER
- Zoom/Matrix level. [required]
- --precision INTEGER
- Decimal precision of coordinates.
- --indent INTEGER
- Indentation level for JSON output
- --compact / --no-compact
- Use compact separators (',', ':').
- --projected / --geographic
- Output coordinate system
- --seq
- Write a RS-delimited JSON sequence (default is LF).
- --feature
- Output as sequence of GeoJSON features (the default).
- --bbox
- Output as sequence of GeoJSON bbox arrays.
- --collect
- Output as a GeoJSON feature collections.
- --extents / --no-extents
- Write shape extents as ws-separated strings (default is False).
- --buffer FLOAT
- Shift shape x and y values by a constant number
- --crs TEXT
- Geographic CRS. Default to WGS84.
- --help
- Show this message and exit.
| December 2025 | morecantile 7.0.1 |