Skip to content

Translating Features of large distances heavily distorts & flips them (at ~+-90°long) #898

@mmodrow

Description

@mmodrow

Describe the bug

When I create any feature (e.g. go to the geojson-editor demo and load blank, afterwards draw a polygon) and then translate it more than 90° along long in any direction, the feature gets totally destroyed along the closest pole and when translated further along the long axis, it returns to normal, but upside down.

Actual Result

Widely distorted translated feature, that has no resemblance of the original feature, even though the default projection should not distort on long-translation at moderate lat coords. E.g. outlining the USA and translating them to Europe gives random shapes at Arctica.

Expected Result

Translating the outline of the USA to Europe should put the outline of the USA undistored ontop of the EU

Reproduce Steps

  • Open a Nebula Map that supports feature translation and global zoom (e.g. the geojson-editor demo)
  • Create any feature that is reasonably sized for world scope view (e.g. outline a big country)
    • It should not be too far off the Equator.
  • Select the feature and translate it ~90° along the long axis and then another 90° in the same direction

Screenshots

nebula_feature_translate_distortion

To Do List

  • Add label and assign to milestone
  • Coding
  • Test

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