Skip to content

Commit

Permalink
README update
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Aug 14, 2024
1 parent d888197 commit ea0ea76
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ SUBCOMMANDS:
---
### mvt dump
Print a vector tile as GeoJSON.
Print a vector tile or GeoJSON file as pretty-printed GeoJSON.
```bash
mvt dump Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt
Expand Down Expand Up @@ -175,6 +175,8 @@ mvt dump Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt
---
### mvt info
Print some informations about vector tiles/GeoJSONs.
**Example 1**: Print information about the MVTTools test vector tile at zoom 14, at Yaoundé, Cameroon.
```bash
Expand Down Expand Up @@ -207,7 +209,7 @@ mvt info https://demotiles.maplibre.org/tiles/2/2/1.pbf
---
### mvt query
Query a vector tile with a search term.
Query a vector tile or GeoJSON file with a search term.
```bash
mvt query Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt "École"
Expand Down Expand Up @@ -246,7 +248,7 @@ mvt query Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt "École"
Query a tile with `latitude,longitude,radius`.
```bash
mvt query Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt "3.87324,11.53731,1000"
mvt query Tests/MVTToolsTests/TestData/14_8716_8015.geojson "3.87324,11.53731,1000"
{
"features" : [
{
Expand Down Expand Up @@ -276,10 +278,20 @@ mvt query Tests/MVTToolsTests/TestData/14_8716_8015.vector.mvt "3.87324,11.53731
---
### mvt merge
Merge two or more vector tiles.
Merge two or more vector tiles or GeoJSON files in any combination.
```bash
# All vector tiles:
mvt merge --output merged.mvt path/to/first.mvt path/to/second.mvt
# All GeoJSON files:
mvt merge --output merged.geojson path/to/first.geojson path/to/second.geojson
# Merge GeoJSON files into a vector tile:
mvt merge --output merged.mvt --output-format mvt path/to/first.geojson path/to/second.geojson
# Merge vector tiles into a GeoJSOn file:
mvt merge --output merged.geojson --output-format geojson path/to/first.mvt path/to/second.mvt
```
---
### mvt export
Expand Down

0 comments on commit ea0ea76

Please sign in to comment.