Skip to content

Ocean elevations return -32768 #3

@louisondumont

Description

@louisondumont

Visibility lines are not properly generated in coastal areas. It took me a little work to figure out that it's because the elevation returned for ocean pixels is -32768. This can be validated by using the elevation endpoint on any coordinate in the ocean.

This looks like a variable overflow somewhere. I don't know if it occurs during processing or data import, but I patched it by adding:

if height == -32768: height = 0

right after for i, height in enumerate(heightmap): in algo.py

I am not sending a pull request because this is obviously not a proper fix, but sharing it here in case anyone struggles with the same.

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