argo-marketplace / LA-LocalGeo-CrossWalk

A single file that links up all the local geographies in LA County
Apache License 2.0
6 stars 2 forks source link

Super simple ipython notebook to intersect using geopandas. #4

Closed vr00n closed 6 years ago

vr00n commented 6 years ago

Super simple ipython notebook to intersect 2 polygons with different attributes to output single polygon with "intersected attributes".

You can experiment with whatever you like - maybe even pick 2 local geographies from Los Angeles.

We will discuss this IPython Notebook next week.

Please ensure your notebook is executable and readable.

gauravcusp commented 6 years ago

@vr00n I've added the notebook to this repo. We've used 2 sets of geographies to perform spatial intersection.

vr00n commented 6 years ago

😲 This is epic @gauravcusp ! Great progress. Especially this part where you were able to isolate a specific area and demonstrate the intersection. Please share this progress with the the team!

image

Next steps are to repeat this process for all geographies and produce a master-intersection attribute file that contains attributes from all the geographies.

Stretch Goal is to build an API functionality on top of the master intersection file.

I guess we can either close this or #6 as they seem similar? @xd515

Keep it up. Please collaborate and share wins

1 team 1 dream.

gauravcusp commented 6 years ago

Hey @vr00n .

When you did the geo cross-walk for NYC, what method did you use? Spatial join or spatial overlay? Because the geopandas overlay function takes forever to run on big files such as census blocks or tracks.

vr00n commented 6 years ago

I actually used the Intersect function in QGIS.

via https://docs.qgis.org/2.18/en/docs/user_manual/processing/vector_menu.html#geoprocessing-tools

image

You may need to research or ask in stackoverflow what the corresponding geopandas function is.

Spatial Overlay sounds right...

vr00n commented 6 years ago

@gauravcusp - please provide resolution details before closing the issue. In this case, where is the Super simple ipython notebook located? Thank You!

gauravcusp commented 6 years ago

Please visit the notebook here.