Commit Graph

1268 Commits

Author SHA1 Message Date
tidwall 745579b56b Updated geojson packages 2018-10-27 09:23:29 -07:00
tidwall b17bbbd829 Merge branch 'always_knn_nearby' of https://github.com/rshura/tile38 into rshura-always_knn_nearby 2018-10-27 09:22:04 -07:00
tidwall e15cfb66d1 Inline optimization 2018-10-27 07:08:24 -07:00
Alex Roitman c673fa01d5 Pass Circle into nearestNeighbor. 2018-10-26 10:05:33 -07:00
Alex Roitman 33530075a4 Use new Meters() function. 2018-10-25 17:00:19 -07:00
Alex Roitman 7c803f355b Make NEARBY always use knn 2018-10-25 16:37:06 -07:00
tidwall b1370332e6 Always use compressed indexing 2018-10-23 11:23:55 -07:00
tidwall ccd6975f5f Fix some tests 2018-10-22 14:52:48 -07:00
tidwall a9a1612972 Update geojson package 2018-10-22 05:40:56 -07:00
tidwall 7cc4008442 Added multiple indexing kinds 2018-10-21 19:08:56 -07:00
tidwall 8ee4c10862 Added geom indexing environment options
T38IDXGEOM  -- Point threshold for indexing geometry
T38IDXMULTI -- Child threshold for indexing multi/collection

Default is 64
Using zero will disable indexing

Example:

T38IDXGEOM=0 tile38-server    # disables geometry indexing
T38IDXGEOM=256 tile38-server  # indexing geometries 256+ points
2018-10-19 06:29:47 -07:00
tidwall d64aad9be0 Change btree implementation for collections 2018-10-18 07:13:24 -07:00
tidwall 3e41a2ecce Update gjson/sjson 2018-10-18 06:30:41 -07:00
tidwall cc75cf22a8 Fix #369 poly in hole query 2018-10-18 06:28:31 -07:00
Josh Baker aba7df1097
Merge pull request #370 from rshura/tests
Add unit tests for WITHIN and INTERSECTS.
2018-10-18 06:25:37 -07:00
Alex Roitman 1517a2a770 Add unit tests for WITHIN and INTERSECTS. 2018-10-17 13:34:11 -07:00
tidwall 1544f2914d Fix Circle type 2018-10-16 08:55:26 -07:00
tidwall 6257ddba78 Faster point in polygon / GeoJSON updates
The big change is that the GeoJSON package has been completely
rewritten to fix a few of geometry calculation bugs, increase
performance, and to better follow the GeoJSON spec RFC 7946.

GeoJSON updates

- A LineString now requires at least two points.
- All json members, even foreign, now persist with the object.
- The bbox member persists too but is no longer used for geometry
  calculations. This is change in behavior. Previously Tile38 would
  treat the bbox as the object's physical rectangle.
- Corrections to geometry intersects and within calculations.

Faster spatial queries

- The performance of Point-in-polygon and object intersect operations
  are greatly improved for complex polygons and line strings. It went
  from O(n) to roughly O(log n).
- The same for all collection types with many children, including
  FeatureCollection, GeometryCollection, MultiPoint, MultiLineString,
  and MultiPolygon.

Codebase changes

- The pkg directory has been renamed to internal
- The GeoJSON internal package has been moved to a seperate repo at
  https://github.com/tidwall/geojson. It's now vendored.

Please look out for higher memory usage for datasets using complex
shapes. A complex shape is one that has 64 or more points. For these
shapes it's expected that there will be increase of least 54 bytes per
point.
2018-10-13 04:30:48 -07:00
tidwall 5ad27e7b5e Removed KML Support 2018-10-13 03:29:44 -07:00
tidwall 0ac1eea9be Fixed panic on set after delete
Fix btree reset single item
2018-10-13 03:29:44 -07:00
Josh Baker 1f177b7641
Update README.md 2018-09-17 14:55:11 -07:00
tidwall 7e16ac536b Added flag for specifying event queue path
Use the `--queuefilename path` command flag

For full in-memory queue use `--queuefilename :memory:`
2018-09-04 12:26:10 -07:00
tidwall 7efa55f175 Updated JSET command doc 2018-09-02 13:53:02 -07:00
Ádám Barancsuk 091f6caaf7
Whitespace fixes 2018-09-01 17:11:10 +02:00
Ádám Barancsuk b65bdaba9e
Use `enumargs` 2018-09-01 17:06:05 +02:00
Ádám Barancsuk 93b85aee01
Update JSET arguments
Add previously undocumented argument `STR`.
See the related doc PR at: https://github.com/tile38/tile38.github.io/pull/19
2018-09-01 10:53:04 +02:00
Josh Baker 6231abb5a1
Update README.md 2018-08-29 15:10:00 -06:00
tidwall 40ec71c048 Updated CHANGELOG 2018-08-29 14:29:08 -06:00
tidwall fb5c5fb244 1.13.0 2018-08-29 14:20:07 -06:00
tidwall 3a6f366955 Added NODWELL keyword 2018-08-22 16:26:27 -07:00
tidwall fa062453cd Update logo 2018-08-18 16:25:53 -07:00
tidwall 73f2cac9a4 Fixed stale faraway object 2018-08-18 15:53:02 -07:00
tidwall 8bde592092 Updated logo 2018-08-17 07:47:03 -07:00
tidwall 07be59e300 Updated readme 2018-08-16 13:34:27 -07:00
tidwall 303a0eb536 code cleanup 2018-08-16 13:14:19 -07:00
tidwall 3ae26e3479 Switch BTree implementation 2018-08-16 13:07:55 -07:00
tidwall 2e7130cda0 Updated Pub/Sub documentation 2018-08-14 11:13:55 -07:00
tidwall b766792d82 Fix expire test 2018-08-14 11:08:34 -07:00
tidwall 0e1ae7b4bc Added faraway roam notification 2018-08-14 10:48:28 -07:00
tidwall b3d3be7e76 objects with roam matches 2018-08-13 20:27:22 -07:00
tidwall 25a60a2497 hook/channel expiration 2018-08-13 17:36:02 -07:00
tidwall eef5f3c7b6 channels 2018-08-13 17:05:30 -07:00
tidwall 3aa394219d expire package 2018-08-13 17:05:20 -07:00
Josh Baker 4e8a7ccfcd
Merge pull request #343 from lennycampino/nats-endpoint
fixed missing else statement when creating nats connection
2018-08-09 08:22:21 -07:00
Lenny-Campino Hartmann c0063a859c fixed missing else statement when creating nats connection 2018-08-09 08:22:18 +02:00
tidwall 6518aafb2d Merge branch 'lennycampino-nats-endpoint' 2018-08-08 18:33:31 -07:00
tidwall f17e95c6b6 Merge branch 'nats-endpoint' of https://github.com/lennycampino/tile38 into lennycampino-nats-endpoint 2018-08-08 18:29:22 -07:00
Lenny-Campino Hartmann 2f076524d4 fixed vendor fetch 2018-08-07 21:24:46 +02:00
Lenny-Campino Hartmann 4cae040470 Added go-nats to vendor 2018-08-07 21:21:35 +02:00
Lenny-Campino Hartmann 53271ebad6 Added NATS endpoint 2018-08-07 21:04:04 +02:00