ONSdigital / SDG_11.2.1

Analysis for the UN Sustainable Development Goal 11.2.1
https://onsdigital.github.io/SDG_11.2.1/
Apache License 2.0
5 stars 7 forks source link

la_pop_df has no gemoetry or crs defined #345

Closed nkshaw23 closed 1 year ago

nkshaw23 commented 1 year ago

When running with the latest version of requirements.txt (see discussion on #338) a warning was raised implying la_pop_df has no CRS defined when intersected with la_stops_geo_df in line 272. Cant be 100% sure intersection is working as should be in this case.

image

Looks to be two geometry columns in la_pop_df so suggest specifying the relevant one and adding a CRS.

Line 235 becomes la_pop_df = gpd.GeoDataFrame(la_pop_df, geometry='geometry_LA', crs=DEFAULT_CRS)