Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validate geographic categories #2

Open
claireboyd opened this issue Apr 9, 2024 · 0 comments
Open

validate geographic categories #2

claireboyd opened this issue Apr 9, 2024 · 0 comments
Assignees

Comments

@claireboyd
Copy link
Collaborator

create a geospatial join to validate geographic categories, using lat/long from the annual/prop file

#nicos code snippet to use as a reference point
parcel_data = gpd.GeoDataFrame(parcel_data[['PropertyID','SitusLongitude','SitusLatitude']],
geometry = gpd.points_from_xy(parcel_data['SitusLongitude'] , parcel_data['SitusLatitude'], crs="EPSG:4326"))

# geolabel are any arbitrary geographic delineation file (for city whatever)
parcel_data = gpd.sjoin(left_df = parcel_data, right_df = geolabel, how='left', predicate='within').drop(['index_right'], axis=1)
# change within to intersect if the file is under 6 million (perhaps try with both -- use intersect if its possible)
@claireboyd claireboyd self-assigned this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant