paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

geojson: have Feature implement the orb.Pointer interface #8

Closed paulmach closed 6 years ago

paulmach commented 6 years ago

Have the geojson.Feature type implement the orb.Pointer interface so it can be used directly in a quadtree. Uses the center of the bound to define the point. For something else see the example on how to define a custom type.

Discussed in https://github.com/paulmach/orb/issues/7

@s8mathur

paulmach commented 6 years ago

@s8mathur thanks for the review!