Skip to content

Proper Usage of quadtree_point_to_nearest_linestring When LineString Originates From a LineString NOT Polygon #1487

Answered by isVoid
squisha asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @squisha ! In your script, the input of quadtree_on_points should accept bounding boxes of the points, not the lines, so I would replace the inputs from cline_lines.x.min() to cgdf.geometry.points.x.min(), and the same for the rest of the inputs.

Additionally, boundaries series is actually the same as cline.geometry, so you can replace all of its usage without having create it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by isVoid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants