Home > Back-end >  Error while looping on polygon geopandas column, within() function not working
Error while looping on polygon geopandas column, within() function not working

Time:12-11

I have a dataframe with Polygons and would like to loop in order to create a new column checking if a specific point is within one or more polygons (as they are not exclusive). I tried to follow a tutorial of geopandas but this doesn't seem to be working as all the columns return a "False". Can one please indicate what I am doing wrong? Many thanks. Just in case, the file "quartier_paris.geojson" is a classic geojson file, it is read without problem (shapes appear and I can go all quartiers.explore() for example and see all the polygons on the map and I am 100% positive that the point is within those polygons. The size of the file is too big to be uloaded though, this is the link for it just in case enter image description here

  • Related