Skip to content

Viewshed polygon optimisation #59

Description

@tombh
Image

We currently store viewsheds using PolarSegments (the white example). When displaying in the browser we convert the PolarSegments to traditional polygons and union all the parts (the green example). Notice how it takes up 4 times as much storage. This is just one example, but it's likely that on average, PolarSegments are more efficient than polygons.

Using algorithms like Douglas-Peuker or Visvalingam we could simplify the polygon (the blue example), and even though in this case its byte size is equal to PolarSegents, it's likely that larger viewsheds enjoy reduced storage at the cost of some fidelity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions