library code execute various proximity analyses using ArcPy for qol proximity analyses
Project description
Note
This package requires 'arcpy' which is part of Esri's ArcGIS software and cannot be installed via pip. Please ensure you have ArcGIS installed and configured correctly. You can get arcpy if you install ArcGIS Pro
Proximity Analysis with ArcPy for Urban Institute's Quality of Life Explorer
This package provides a Python class proximity
tailored for analyzing spatial relationships in GIS, specifically designed for Urban Institute's Quality of Life explorer (QOL) spatial variables.
Installation
Install qolproximity
from PyPI using pip:
pip install qolproximity
Usage
import qolproximity as qol
Example usage for proximity to Pharmacy:
P = qol.proximity('TaxData2023', 'Pharmacy2024')
Merge pharmacy data
P.merge('Pharmacy', 'PharmacyUnmatched')
Add a new field for residential proximity to pharmacy
P.addfield('ResNearPharmacy')
Summarize the results
P.summarize('r', 'd', ProjectGDB)
Export summarized results to a text file
P.exportcsv(path, 'QOL_46_2023.csv')
Methods
init(self, tax_parcel_feature_class, proximity_feature_class): Initialize the proximity class with the tax parcel feature class and proximity feature class.
merge(self, *feature_classes_to_be_merged): Merge proximity feature classes from multiple sources into one feature class for analysis.
addfield(self, new_field_name): Add a new field to the tax parcel feature class.
summarize(self, near_residential_output_table, housing_units_table, geodatabase): Summarize residential units near the proximity feature class and export results to a geodatabase.
exporttxt(self, output_directory, final_txt_name): Export summarized results to a text file in the specified directory.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qolproximity-1.4.tar.gz
.
File metadata
- Download URL: qolproximity-1.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 534b8d62135ea9ac0678515c1c694ca55690904dbc2384d888fe8b92a63c9e39 |
|
MD5 | 88b60fd3666cce64d82c0c9ec7cf32eb |
|
BLAKE2b-256 | 5dfa45bbfef5ae63c3aa3b6d8e5942c91b2182bdb30c8f674660c9073506fc6c |
File details
Details for the file qolproximity-1.4-py3-none-any.whl
.
File metadata
- Download URL: qolproximity-1.4-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 073f5271b5a2aa05a8a1e0bb8aa6a4ef49b329e895e4fbdfbc5590a88e6de83d |
|
MD5 | fca3042ec9b05b58d468cbe7b3d8d7f8 |
|
BLAKE2b-256 | 9492e45c3ccd5a79639d59974f4310edeacaf34bed3c5a96721f518f9c0480e2 |