You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-52Lines changed: 0 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,30 +45,6 @@ Note, Windows is not officially supported at this time.
45
45
Windows users need to install [GDAL](http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal) and [rasterio](http://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio).
46
46
Then `pip install 'mapbox-tilesets[estimate-area]'`
47
47
48
-
## Installing optional `estimate-cu` command
49
-
50
-
If you are using an x86 Mac or Linux machine, run:
51
-
`pip install 'mapbox-tilesets[estimate-cu]'`
52
-
53
-
Otherwise, you will need to install some dependencies.
54
-
55
-
### arm64 MacOS
56
-
57
-
If you're on an arm64 Mac (e.g., with an M1 chip), you'll need to install [GDAL](https://gdal.org/) first. On Mac, a simple way is to use [Homebrew](https://brew.sh/):
58
-
59
-
```sh
60
-
$ brew install gdal
61
-
...
62
-
$ pip install 'mapbox-tilesets[estimate-cu]'
63
-
```
64
-
65
-
### Windows
66
-
67
-
Note, Windows is not officially supported at this time.
68
-
69
-
Windows users need to install [GDAL](http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal) and [rasterio](http://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio).
70
-
Then `pip install 'mapbox-tilesets[estimate-cu]'`
71
-
72
48
## Mapbox Access Tokens
73
49
74
50
In order to use the tilesets endpoints, you need a Mapbox Access Token with `tilesets:write`, `tilesets:read`, and `tilesets:list` scopes. This is a secret token, so do not share it publicly!
Estimates the CU value of a tileset before publishing it. This is useful to understand the estimated cost a given tileset before you start processing the data. Note: This is currently only available to tileset recipes with type `raster` or `rasterarray`.
257
-
258
-
See https://docs.mapbox.com/help/glossary/compute-unit/ for more information.
259
-
260
-
Flags:
261
-
-`-s` or `--sources`[optional]: Local path to the sources that your recipe points at. This is highly recommeneded.
262
-
-`-b` or `--num-bands`[optional]: The number of bands you expect your recipe to select across all layers. This is recommended.
263
-
-`--minzoom`[optional]: Use this flag if your recipe does not contain a minzoom value.
264
-
-`--maxzoom`[optional]: Use this flag if your recipe does not contain a maxzoom value.
265
-
-`--raw`[optional]: This will toggle the pretty print output.
266
-
267
-
Usage
268
-
269
-
```shell
270
-
# Estimate the CUs for 'account.tileset' with sources located in 'path/to/sources/' and a band count of 20.
0 commit comments