Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.28 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.28 KB

STL Vacant Parcels

This script is used to merge the CSV of Vacant Parcels generated from the STL Vacancy Project and the official City of St. Louis Parcels Shapefile to enable mapping and visualization of the data.

The Map

screenshot

The Script

Installation

  1. Install Python 2.x
  2. Install pip
  3. pip install pyshp
  4. pip install requests

Run

  1. Open terminal, type python main.py

This will download the required data, generate the Shapefile, and save that Shapefile out to tmp/prcl/modified. You can then use this file in geospatial software like ArcGIS Pro or zip it up and upload it to a geospatial platform like ArcGIS Online.

Notes

Arcade Expression used in the ArcGIS Web Map:

if($feature.VB_Final == 2) {
    return "Vacant Building - Certain";
} else if($feature.VB_Final == 1) {
    return "Vacant Building - Probable";
} else if($feature.VL_Final == 2) {
    return "Vacant Lot - Certain";
} else if($feature.VL_Final == 1) {
    return "Vacant Lot - Probable";
} else {
    return "Other";
}