We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SnapFeatures constructor, which constructs the Rtree from the mesh positions, takes up the majority of the time.
SnapFeatures
This index could be useful in the future after the initial snapping of the basemap to the mesh.
For example, say a user is interested in uploading a GPS trace and wants to view it on top of the map, the process for displaying it might be:
Since Flatbush is based on typed arrays, "rehydrating" a flatbush index is easy and supported. https://github.com/mourner/flatbush#flatbushfromdata
This could make it easy to store the rtree for later use (as long as memory pressure isn't a concern)
benchmark flatbush.from(data)
flatbush.from(data)
expose an object from the SnapFeatures that includes
indexData: Flatbush.data (TypedArray); triangles: FloatArray; bounds: [number, number, number, number] | null;
(bounds might not be necessary). This would be an object of 3
bounds
The text was updated successfully, but these errors were encountered:
Note that storing the index with the tile data would also help if I ever figured out the viewshed algorithm
Sorry, something went wrong.
No branches or pull requests
Motivation
The
SnapFeatures
constructor, which constructs the Rtree from the mesh positions, takes up the majority of the time.This index could be useful in the future after the initial snapping of the basemap to the mesh.
For example, say a user is interested in uploading a GPS trace and wants to view it on top of the map, the process for displaying it might be:
Idea
Since Flatbush is based on typed arrays, "rehydrating" a flatbush index is easy and supported. https://github.com/mourner/flatbush#flatbushfromdata
This could make it easy to store the rtree for later use (as long as memory pressure isn't a concern)
benchmark
flatbush.from(data)
expose an object from the
SnapFeatures
that includes(
bounds
might not be necessary). This would be an object of 3The text was updated successfully, but these errors were encountered: