paulsmith / gogeos

Go library for spatial data operations and geometric algorithms (Go bindings for GEOS)
http://paulsmith.github.io/gogeos/
MIT License
280 stars 79 forks source link

STRTree #2

Open paulsmith opened 11 years ago

ctessum commented 10 years ago

Does this have to do with implementing an R-Tree? If so, there is already (what looks like) a good one here: http://godoc.org/github.com/dhconnelly/rtreego

In order for this package and that package to work together, I think this package just needs to have a function that returns the bounding box of a geometry as coordinates instead of as another geometry, or just a function that returns the coordinates of a geometry. Would that be straightforward to do?

ctessum commented 10 years ago

In the meantime, I've created a kludge that does this by parsing the output from ToWKT(): https://bitbucket.org/ctessum/geos2rtree