ronnyhdez / reclaimed_sites_ab

https://ronnyhdez.github.io/reclaimed_sites_ab/
0 stars 0 forks source link

Integrate all steps for flagging the intersections #65

Closed ronnyhdez closed 3 months ago

ronnyhdez commented 3 months ago

This has to be done in just one step. The output then should be saved as an asset for later filtering steps.

The code that should be modified:

def define_intersection(well):
    intersects_waterbody = water_bodies_vector.filterBounds(well.geometry()).size().gt(0)
    intersects_buffer = buffered_waterbodies.filterBounds(well.geometry()).size().gt(0)
    return well.set('intersects_waterbody', intersects_waterbody.toInt()) \
               .set('intersects_buffer', intersects_buffer.toInt())

In there I should include all the other buffers and set the new variables to complete the desired output.

ronnyhdez commented 3 months ago

Ref #70