Skip to content

Commit 60bdad2

Browse files
committed
docs
1 parent 0153e91 commit 60bdad2

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export MAPBOX_ACCESS_TOKEN=my.token
6464

6565
- Tileset Sources
6666
- [`upload-source`](#upload-source)
67+
- [`upload-raster-source`](#upload-raster-source) (new)
6768
- _deprecated_ [`add-source`](#deprecated-add-source)
6869
- [`validate-source`](#validate-source)
6970
- [`view-source`](#view-source)
@@ -118,6 +119,21 @@ tilesets upload-source <username> <source_id> file-1.geojson file-4.geojson
118119
# Reading from a directory will not distinguish between GeoJSON files and non GeoJSON files. All source files will be run through our validator unless you pass the `--no-validation` flag.
119120
tilesets upload-source <username> <source_id> ./path/to/multiple/files/
120121
```
122+
### upload-raster-source
123+
124+
```shell
125+
tilesets upload-source-source <username> <source_id> <file>
126+
```
127+
128+
Uploads Raster files to a source for tiling. Accepts GeoTIFF, NetCDF and GRIB formats right now. Can be used to add data to a source or to replace all of the data in a source with the `--replace` flag.
129+
130+
Learn more about the supported formats and using Raster source [here](https://docs.mapbox.com/mapbox-tiling-service/guides/).
131+
132+
Flags:
133+
134+
- `--replace` [optional]: delete all existing source data and replace with data from the file
135+
- `--quiet` [optional]: do not display an upload progress bar
136+
121137

122138
### _deprecated_ add-source
123139

mapbox_tilesets/scripts/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def callback(m):
638638
@click.option(
639639
"--replace",
640640
is_flag=True,
641-
help="Upload raster source file",
641+
help="Replace the existing source with raster source file ",
642642
)
643643
@click.option("--token", "-t", required=False, type=str, help="Mapbox access token")
644644
@click.option("--indent", type=int, default=None, help="Indent for JSON output")

0 commit comments

Comments
 (0)