Skip to content

Issue with surface path crossing -180 to 180 longitude #46

@EMaksymenko

Description

@EMaksymenko

Problem Description

Currently, SurfaceShape and related Sector implementations do not normalize longitudes or handle short-path logic when rendering polygons or regions that cross the International Date Line (±180° longitude). This leads to:

  • Shapes rendering along the long path (across the globe) instead of the short one

Steps to Reproduce

  1. Create a SurfaceShape (e.g., Polygon, Path, etc.) with a longitude range from 179°E to -179°W (an actual span of just 2°)
  2. The rendered shape will follow the long way around the globe

Expected Result

  • SurfaceShape and Sector should automatically detect and handle dateline crossing, mapping all vertices and regions to the same longitude domain and rendering along the short path
  • Texture fill and clipping should also work correctly in these cases

Screenshot_20231116-141706_ComBat 4.jpg

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions