Hello,

Well, I’m trying to organize some geometry by location ( in ArcGIS, this would be a Spatial Join ).

I made this definition, that works with some polygons: by the center point, I can find wich building is inside the plot (both closed polylines) and organize them by tree/branches: One branch for each plot and same branch path for various buildings. Example:

Tree Plots (red): Branch {233} with one single polyline in plot geometry

Tree Buildings (green): Branch {233} with two buildings - two polylines - that has its center inside the plot 233.

If you need to do the same with few polygons, my definition works:

spatial join (few polygons).gh (106.5 KB)

But the main component that does it, the Point In Curve, it is not efficient if you have thousands plots and hundred of thousands buildings, because it compares every point to every plot. I wish to have a component that tests only the points that are close to the polyline, so the processing time is optmized.

Is there any efficient way to do that?

Thank you in advance,

Kevin