Skip to content

The New York City Landmarks Preservation Commission is the New York City agency charged with administering the city's Landmarks Preservation Law. This script is used to scrape the NYC Open Data platform for the most recent LPC data sets and to update and distribute these data sets accordingly across DCP's internal network file-systems.

Notifications You must be signed in to change notification settings

NYCPlanning/gis-lpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Landmarks Preservation Commission Web Scrape


The New York City Landmarks Preservation Commission is the New York City agency charged with administering the city's Landmarks Preservation Law. This script is used to scrape the NYC Open Data platform for the most recent LPC data sets and to update and distribute these data sets accordingly across DCP's internal network file-systems.

Prerequisites

An installation of Python 2 with the following packages is required. A version of Python with the default ArcPy installation that comes with ArcGIS Desktop is required in order to utilize Metadata functionality that is currently not available in the default ArcPy installation that comes with ArcGIS Pro (Python 3).

BuildingFootprints_Scrape.py
requests, arcpy, ConfigParser, traceback, sys, os, zipfile, datetime, xml.etree.ElementTree, BeautifulSoup

Instructions for running

LPC_Scrape.py
  1. Open the script in any integrated development environment (PyCharm is suggested)

  2. Ensure that your IDE is set to be utilizing a version of Python 2 with the required python packages available.

  3. Ensure that the configuration ini file is up-to-date with path variables. If any paths have changed since the time of this writing, those changes must be reflected in the Config.ini file.

  4. Run the script. It will create a temporary directory on the user’s C: drive for storing the downloaded requisite LPC data sets. It will also parse each data set’s Open Data page for the provided update-date.

  5. SDE PROD metadata will be imported into the downloaded shapefiles and altered to update the publication date and description content (for description content, updating publication date of data and download date of data).

  6. Update layer files on M: drive by generating new stand-alone xml files for each newly downloaded data set, respectively.

About

The New York City Landmarks Preservation Commission is the New York City agency charged with administering the city's Landmarks Preservation Law. This script is used to scrape the NYC Open Data platform for the most recent LPC data sets and to update and distribute these data sets accordingly across DCP's internal network file-systems.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages