New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to search object nearby other objects. (linestring buffering) #79
Comments
If someone wants to implement this, there is a good example in JavaScript, here: https://github.com/Turfjs/turf/blob/master/packages/turf-buffer/index.js I might implement this in Go eventually, though not any time soon. |
Almost similar in geoLib https://github.com/manuelbieh/geolib/blob/master/src/isPointNearLine.ts |
Has there been some development on this issue? |
Actually, I do have something in a dev branch somewhere. I'll dig around and see what state the code is in. |
I just committed the ability to buffer objects in 241117c. It's a little different that what I suggested back in 2016, but it should provide the same underlying functionality. Here's an example:
It uses a new |
Currently the NEARBY command only supports a radius search around single a point, such as:
But it would be great to add the ability to search nearby other objects such as:
Under the hood the NEARBY command would need to generate a new polygon from the linestring by "buffering" the linestring using an algorithm like the Minkowski Sum, PostGIS ST_MinkowskiSum.
Original LineString:
Buffered LineString:
And then the NEARBY command would hand the control to the INTERSECTS command.
The text was updated successfully, but these errors were encountered: