whosonfirst / go-whosonfirst-sqlite-features

Go package for working with Who's On First features and SQLite databases.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Allow alt geometries to be indexes in "spr" table #12

Closed thisisaaronland closed 3 years ago

thisisaaronland commented 3 years ago

This would allow the go-whosonfirst-spatial-sqlite table to inflate cache.SPRCacheItem elements directly from the spr table rather the geojson table.

The go-whosonfirst-spatial SPR caching layer is doing a bunch of stuff with geometries that will need to be accounted for (and ideally removed).

thisisaaronland commented 3 years ago

This will require "SPRTableOptions" along the lines of:

                rtree_opts, err := tables.DefaultRTreeTableOptions()

                if err != nil {
                        logger.Fatal("failed to create 'rtree' table options because %s", err)
                }

                rtree_opts.IndexAltFiles = *alt_files
thisisaaronland commented 3 years ago

Added in v0.6.0