Skip to content
New issue

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

Layer data enhancements #100

Merged
merged 35 commits into from
Oct 19, 2023
Merged

Layer data enhancements #100

merged 35 commits into from
Oct 19, 2023

Conversation

anthonynorth
Copy link
Member

@anthonynorth anthonynorth commented Oct 19, 2023

Re-implements layer data serialisation and parsing, and column accessors.

Serialisation

Geometries are flattened into arrays of flat coordinates. This format is significantly faster to serialise with jsonlite (points are roughly the same), allows for deck.gl optimisation for paths and polygons, and fixes js memory issues flattening large multi-geometry tables.

Serialisation is no longer dependent on {sf} internal geometry representation. Uses {wk}'s vertex filter.

Parsing

Layer data types are now dynamically resolved in browser using dataTransform and accessors with embedded conditionals. External json files may now be formatted as either row-major, or the much better column-major.

@anthonynorth anthonynorth merged commit 016d7e6 into master Oct 19, 2023
6 checks passed
@anthonynorth anthonynorth deleted the layer-data branch October 19, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant