Scroll to navigation

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

Increase verbosity.
Decrease verbosity.
Show the version and exit.
Show this message and exit.

Commands:

Create Custom TileMatrixSet
Print the shapes of tiles as GeoJSON.
Print tiles that overlap or contain a lng/lat point, bounding box, or GeoJSON objects.
Print TileMatrixSet JSON document.
tms-to-geojson
Print TileMatrixSet MatrixSet as GeoJSON.

SYNOPSIS

morecantile custom [OPTIONS]

DESCRIPTION

Create Custom TMS.

OPTIONS

EPSG number. [required]
left, bottom, right, top Bounding box of the Tile Matrix Set. [required]
Identifier of the custom TMS.
Minimum Zoom level.
Maximum Zoom level.
Width of each tile.
Height of each tile.
EPSG number for the bounding box.
Tile Matrix Set title.
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

TileMatrixSet identifier.
Decimal precision of coordinates.
Indentation level for JSON output
Use compact separators (',', ':').
Output coordinate system
Write a RS-delimited JSON sequence (default is LF).
Output as sequence of GeoJSON features (the default).
Output as sequence of GeoJSON bbox arrays.
Output as a GeoJSON feature collections.
Write shape extents as ws-separated strings (default is False).
Shift shape x and y values by a constant number
--tms PATH
Path to TileMatrixSet JSON file.
Geographic CRS. Default to WGS84.
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

TileMatrixSet identifier.
Write a RS-delimited JSON sequence (default is LF).
--tms PATH
Path to TileMatrixSet JSON file.
Show this message and exit.

SYNOPSIS

morecantile tms [OPTIONS]

DESCRIPTION

Print TMS JSON.

OPTIONS

TileMatrixSet identifier. [required]
Show this message and exit.

SYNOPSIS

morecantile tms-to-geojson [OPTIONS] [INPUT]

DESCRIPTION

Print TMS document as GeoJSON.

OPTIONS

Zoom/Matrix level. [required]
Decimal precision of coordinates.
Indentation level for JSON output
Use compact separators (',', ':').
Output coordinate system
Write a RS-delimited JSON sequence (default is LF).
Output as sequence of GeoJSON features (the default).
Output as sequence of GeoJSON bbox arrays.
Output as a GeoJSON feature collections.
Write shape extents as ws-separated strings (default is False).
Shift shape x and y values by a constant number
Geographic CRS. Default to WGS84.
Show this message and exit.
December 2025 morecantile 7.0.1