Commit Graph

12 Commits

Author SHA1 Message Date
Josh Baker bce78028bb minor code cleanup 2018-03-05 08:27:18 -07:00
Josh Baker 1f70cb4e75 Precalculate and store bboxes for complex objects
This should increase the performance for most search operations such as
WITHIN, INTERSECTS, and NEARBY when dealing with complex polygons.
Geofencing should see a increase in throughput when dealing with a high
frequency of point -> polygon detection.

Addresses #245
2018-01-11 13:57:18 -07:00
Josh Baker 659a715065 Optimized GeoJSON
Removed map[string]interface{} for Feature type.
Replaced "encoding/json" with "tidwall/gjson" for parsing.
Removed ablility to serialize to binary. JSON only.
2016-11-02 05:51:48 -07:00
umpc bd2c25987a Typo on line 244: minimum -> maximum 2016-10-13 06:34:51 -04:00
umpc 49b32a1637 Fix comment typo on line 244 2016-10-13 06:26:23 -04:00
umpc 05de7283b4 Non-essential changes
I changed style slightly to better fit in with the rest of the project's code, added some missing comments where needed, and added in the commented code that the unchanged bounds must be copied to both of the new bboxes if it is later refactored to work that way.
2016-10-13 06:17:45 -04:00
umpc c665c324ff Fix incorrect query boundaries when using large radii 2016-10-13 04:26:05 -04:00
Josh Baker 6c57c663d3 fixed #64, nearby wrap-around issue 2016-10-12 15:15:07 -07:00
Josh Baker c425d76374 Z optimized, fixed #61 2016-10-03 13:03:20 -07:00
Josh Baker fa87ff78d7 gofmt -s 2016-04-02 19:19:43 -07:00
Josh Baker 6b9468d01b lint cleanup 2016-04-02 19:16:36 -07:00
Josh Baker 4fc58f7f5c first commit 2016-03-04 16:08:16 -07:00