Skip to main content
deleted 27 characters in body
Source Link
Kadir Şahbaz
  • 78k
  • 57
  • 257
  • 404

Im a senyor year CS student.

myMy final project is to improve Waze with AI. inIn order to do that iI need to join 2 datasetdatasets.

1 - jams - linestrings that iI convert to polygons using buffer

2 - alerts by user - points

bothBoth are in the same city.

afterAfter cleaning the data and make columns as geometry object iI need to add to alerts DF new column with value of the jams that contain the alert

i. I tried a lot of solutions in the net, no one helped me  .

thisThis is the 2 dataset

Alerts + Traffic : https://file.io/yOzwECMtiQnRAlerts + Traffic

screenshot head - enter image description here

`Trafficjan.set_geometry("polygeo") m = gpd.sjoin(Alertsjan,

Trafficjan, how="left", predicate="within")`

Trafficjan.set_geometry("polygeo")

m = gpd.sjoin(Alertsjan, Trafficjan, how="left", predicate="within")

thisThis code givegives me nothing.

Im a senyor year CS student.

my final project is to improve Waze with AI. in order to do that i need to join 2 dataset

1 - jams - linestrings that i convert to polygons using buffer

2 - alerts by user - points

both are in the same city

after cleaning the data and make columns as geometry object i need to add to alerts DF new column with value of the jams that contain the alert

i tried a lot of solutions in the net, no one helped me  .

this is the 2 dataset

Alerts + Traffic https://file.io/yOzwECMtiQnR

screenshot head - enter image description here

`Trafficjan.set_geometry("polygeo") m = gpd.sjoin(Alertsjan,

Trafficjan, how="left", predicate="within")`

this code give me nothing

My final project is to improve Waze with AI. In order to do that I need to join 2 datasets.

1 - jams - linestrings that I convert to polygons using buffer

2 - alerts by user - points

Both are in the same city.

After cleaning the data and make columns as geometry object I need to add to alerts DF new column with value of the jams that contain the alert. I tried a lot of solutions in the net, no one helped me.

This is the 2 dataset: Alerts + Traffic

screenshot head - enter image description here

Trafficjan.set_geometry("polygeo")

m = gpd.sjoin(Alertsjan, Trafficjan, how="left", predicate="within")

This code gives me nothing.

Source Link

Spatial Join Point within Polygon Python

Im a senyor year CS student.

my final project is to improve Waze with AI. in order to do that i need to join 2 dataset

1 - jams - linestrings that i convert to polygons using buffer

2 - alerts by user - points

both are in the same city

after cleaning the data and make columns as geometry object i need to add to alerts DF new column with value of the jams that contain the alert

i tried a lot of solutions in the net, no one helped me .

this is the 2 dataset

Alerts + Traffic https://file.io/yOzwECMtiQnR

screenshot head - enter image description here

`Trafficjan.set_geometry("polygeo") m = gpd.sjoin(Alertsjan,

Trafficjan, how="left", predicate="within")`

this code give me nothing