Commit Graph

9 Commits

Author SHA1 Message Date
Josh Baker 0ce2dab945 fix perf regression 2018-03-09 19:05:31 -07:00
Josh Baker 4c2c1dd186 Better polygon detection logic
Refactored shared detection logic.
Fixed linestring, multilinestring, and multipoint bugs.
Added more geojson unit tests.
2018-03-09 17:22:38 -07:00
Josh Baker dc1cc76247 better multipolygon detection 2018-01-15 13:15:34 -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 19da27b562 removed unused return value 2016-12-16 14:02:58 -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
Josh Baker 9ab35d91f8 linestring nearby search correction, fixes #43 2016-09-02 14:34:17 -07:00
Josh Baker 8d89198eaf wip. adding string value type. 2016-07-09 19:44:28 -07:00
Josh Baker 4fc58f7f5c first commit 2016-03-04 16:08:16 -07:00