Upload County datasets to be aggegated into MetroGIS Regional Datasets. This is intended for a small community of MetroGIS participants
- Python 3.x
- ArcGIS Pro - "arcgis" Python module requires running on a client with ArcGIS Pro
- logfile - your choice on the your local file system for where the log file should go
- user - username assigned from the Met Council
- loglevel - How verbose do you want the log file?
- county - type the county submitting data (e.g. Dakota, Washington, etc) sans "County" suffix
e.g.
[ADDRESSPOINTS]
uploadfile = C:\temp\addresspointdatazipfile.zip
Run the python code with one parameter - datastsetname
As mentioned above, the script requires a Python module installed with ArcGIS Pro. On a windows machine with a standard ArcGIS Pro installation, one way to run the script would be from the "Python Command Prompt" found in the Windows Start Menu under the ArcGIS Folder.
Assuming you saved the code and config file in c:\scripts\MetroGIS, it would look something like this:
(arcgispro-py3) C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3>python.exe C:\scripts\MetroGIS\uploadscript.py ADDRESSPOINTS
The script will challenge for the password of the user identified in the user parameter of the config.ini (see step 1)
The script will use the local system credential manager for future unattended/scheduled execution.
The script can now be run non-interactively/automated. See this esri blog post for more info on setting up python scripts to run on a schedule. https://www.esri.com/arcgis-blog/products/arcgis-pro/analytics/schedule-a-python-script-or-model-to-run-at-a-prescribed-time-2019-update/
When Portal password changes, remember to either change the password in the credential manager, or remove the entry entirely and go back to step 2.