koopjs / winnow

Deprecated
Apache License 2.0
90 stars 18 forks source link

Any spatial indexing like rtree, btree, rbush was used? #132

Closed hoogw closed 4 years ago

hoogw commented 4 years ago

I am new to koop.js

Any spatial indexing like rtree, btree, rbush was used in winnow?

for example: 

    terraformer.js use rtree
    sqlite  use rtree
   sql server spatial use btree
   oracle use ?
   postgis use ?

I have not test yet,
How the spatial query performance is? Would rtree make it faster?

rgwozdz commented 4 years ago

Not to my knowledge. It uses alasql to do all processing on data held in memory.

hoogw commented 4 years ago

alasql use 'in memory' should be fast compare to indexedDB, sqlite (store on disk, physical file), I am going to test the spatial query performance with 1m features geojson ST_interact.

terraformer.js is so fast with polygon interact , without delay

hoogw commented 4 years ago

so far failed to build a browser version of winnow.js. no way to test it in browser

see my another issue for failure with browserify

rgwozdz commented 4 years ago

This wasn't developed with the browser in mind, but if you want to try a PR, feel free.

hoogw commented 4 years ago

browser version have great use case than server version. I am using terraformer.js browser version for now. Winnow could be a good alternative to that.