Skip to content

Commit 33c7fd4

Browse files
committed
docs about admin2
1 parent b1f9b3c commit 33c7fd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,13 @@ Run ` python manage.py update-sovereign-and-disputed new_fields.csv` to update t
247247
## Update Mapbox Tilesets
248248
To update GO countries and districts Mapbox tilesets, run the management command `python manage.py update-mapbox-tilesets`. This will export all country and district geometries to a GeoJSON file, and then upload them to Mapbox. The tilesets will take a while to process. The updated status can be viewed on the Mapbox Studio under tilesets. To run this management command, MAPBOX_ACCESS_TOKEN should be set in the environment.
249249

250-
### Option available for the command
250+
### Options available for the command
251+
* `--production` — update production tilesets. If this flag is not set, by default the script will only update staging tiles
251252
* `--update-countries` — update tileset for countries, including labels
252253
* `--update-districts` — update tileset for districts, including labels
253-
* `--update-all` — update all tilesets
254+
* `--update-all` — update all countries and districts tilesets
255+
* `--create-and-update-admin2 <ISO3>` — if a new admin2 tileset should be created, use this argument. It will create a new source on Mapbox and then register a tileset. Ensure that a recipe is create in `mapbox/admin2/` directory. For example, see `mapbox/admin2/COL.json`. To run `python manage.py update-mapbox-tilesets --create-and-update-admin2 COL`
256+
* `--update-admin2 <ISO3>` — use this to update an existing admin2 tileset. For example, `python manage.py update-mapbox-tilesets --update-admin2 COL`
254257

255258
## Import GEC codes
256259
To import GEC codes along with country ids, run `python manage.py import-gec-code appeal_ingest_match.csv`. The CSV should have the columns `'GST_code', 'GST_name', 'GO ID', 'ISO'`

0 commit comments

Comments
 (0)