developmentseed / developmentseed/lonboard
Set `positionFormat` for reduced memory use?
- Dominant language
- Python
- Stars
- 964
- Forks
- 54
- Avg merge
- 5m
- Merged PRs (30d)
- 1
Description
https://deck.gl/docs/api-reference/core/layer#positionformat
> `positionFormat` ("XYZ"|"XY", optional)
>
> The format of positions. This prop is currently only effective in PathLayer, SolidPolygonLayer and PolygonLayer.
>
> Default 'XYZ'.
Does deck uses an `XYZ` position format by default? And, if so, does that mean it allocates an empty Z buffer for all coordinates? If so, we should pass `positionFormat: XY` whenever we know we have 2D data (which we always know). Do we get a 33% memory reduction?
Perhaps we should set this in deck.gl-layers instead of here.
cc @felixpalmer for thoughts
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.