/PaRIT_gisprocessing

Automates the processing of data to add on to the City of Urbana's Plans and Regulations Information Tool (PaRIT), created for Fall 2021 UP510 Plan Making course at UIUC.

Primary LanguagePython

Automating GIS Data Processing for PaRIT

Python script that automates the processing of GIS data to add on to the City of Urbana's Plans, Projects, and Regulations Information Tool (PaRIT), created for Fall 2021 UP510 Plan Making course at UIUC.

Tool can be found here: link

Script Processing Steps

This script does the following:

  1. Sets ArcGIS geoprocessing env
  2. Creates a copy of the input featureclass to be added to the plans gdb
  3. Inputs CLI args into corresponding field values
  4. Autofills 'last_update' field value
  5. Removes unnecessary fields
  6. Renames fields unique to each feature in the feature class
  7. Appends the input featureclass to the plans geodatabase

Run the Script

We can run this Python script via the command line using these instructions from ArcGIS Pro's Python documentation.

  c:\Progra~1\ArcGIS\Pro\bin\Python\scripts\propy.bat parit.py \
  --data /path/to/data/to/be/added \
  --gdb /path/to/plans/geodatabase \
  --allplans /path/to/allplans/featureclass \ #this is PaRIT's hosted layer
  --fc name_of_featureclass_process \
  --title plan_title \
  --year plan_year \
  --theme {housing, transportation, social/economic, comp plan, small-area} \
  --author author_of_plans \
  --pdf {PDF_URL} \
  --id unique_column_name