MCPcopy Create free account

hub / github.com/GISupportICRC/ArcGIS2Mapbox / functions

Functions12 in github.com/GISupportICRC/ArcGIS2Mapbox

↓ 2 callersMethodhandle_http_error
(self, response, custom_messages=None, raise_for_status=False)
arc2mb.py:118
↓ 1 callersMethod_get_credentials
Gets temporary S3 credentials to stage user-uploaded files.
arc2mb.py:137
↓ 1 callersMethodcreate
Initiates the creation process from the staging S3 bucket into the user's tileset.
arc2mb.py:181
↓ 1 callersFunctiongenerate_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 callersFunctionmain
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 callersFunctionshp_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 callersMethodstage
Stages the user's file on S3. Returns the URL to the staged resource.
arc2mb.py:152
↓ 1 callersFunctionunzip_shapefile
Unzipping helper function which unzips an archive of shapefile support files and returns the path to the primary shapefile.
arc2mb.py:242
↓ 1 callersMethodupload
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 callersFunctionzip_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
Methodusername
Get username from access token. Token contains base64 encoded JSON object with username.
arc2mb.py:101