Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GISupportICRC/ArcGIS2Mapbox
/ functions
Functions
12 in github.com/GISupportICRC/ArcGIS2Mapbox
⨍
Functions
12
◇
Types & classes
6
↓ 2 callers
Method
handle_http_error
(self, response, custom_messages=None, raise_for_status=False)
arc2mb.py:118
↓ 1 callers
Method
_get_credentials
Gets temporary S3 credentials to stage user-uploaded files.
arc2mb.py:137
↓ 1 callers
Method
create
Initiates the creation process from the staging S3 bucket into the user's tileset.
arc2mb.py:181
↓ 1 callers
Function
generate_mbtiles
Uses tippecanoe to pre-generate vector tile layers, because Mapbox's online Uploader API does not offer control over generated zoom detail lev
arc2mb.py:263
↓ 1 callers
Function
main
Main loop which creates Uploader class instance, converts shapefiles or zipped shapefiles to WGS-84 projected GeoJSON, generates vector tile l
arc2mb.py:353
↓ 1 callers
Function
shp_to_json
Conversion helper function uses ogr to project shapefiles and convert them to GeoJSON, and returns the filesystem path to the result.
arc2mb.py:287
↓ 1 callers
Method
stage
Stages the user's file on S3. Returns the URL to the staged resource.
arc2mb.py:152
↓ 1 callers
Function
unzip_shapefile
Unzipping helper function which unzips an archive of shapefile support files and returns the path to the primary shapefile.
arc2mb.py:242
↓ 1 callers
Method
upload
High level function to upload a file object to Mapbox tileset Returns a response object where the json() is a dict with upload metadat
arc2mb.py:205
↓ 1 callers
Function
zip_shapefile
Packaging helper function which given a path to a shapefile, creates an archive of all of its support files (overwriting existing) and return
arc2mb.py:217
Method
__init__
Constructs a Service object.
arc2mb.py:89
Method
username
Get username from access token. Token contains base64 encoded JSON object with username.
arc2mb.py:101