NYCPlanning / ceqr-app-data-archive

(DEPRECATED)data pipelines for CEQR app, managed by data engineering
https://github.com/NYCPlanning/ceqr-app-data
1 stars 1 forks source link

CEQR Air Quality: Manufacturing or processing facilities, boilers #14

Closed AmandaDoyle closed 4 years ago

AmandaDoyle commented 5 years ago

Source: DEP CATS Permits

Steps:

baolingz commented 4 years ago
AmandaDoyle commented 4 years ago

Noted above, which tasks are priority tasks

baolingz commented 4 years ago

The number of characters for BIN value is correct, but it will return an empty string if nothing is returned by Geosupport

baolingz commented 4 years ago

Below are the DEP CATS permits that could be purged for air quality (confirmed with Cary):

After applying this logic, all permits are geocoded.

baolingz commented 4 years ago
SELECT * FROM dep_cats_permits.geo_rejects
WHERE status !~* 'CANCELLED'
AND LEFT(applicationid, 1) != 'G'
AND (LEFT(applicationid, 2) != 'CA' OR (requesttype != 'REGISTRATION' AND requesttype != 'REGISTRATION INSPECTION'))
AND (LEFT(applicationid, 2) != 'CA' OR requesttype != 'WORK PERMIT' OR status != 'EXPIRED')
;