Skip to content

Regression: RangeXY now provides incorrect longitude x_range #753

Open

Description

ALL software version info

I think only hv and gv versions are relevant

geoviews 1.13.0
holoviews 1.19.1

Description of expected behavior and the observed behavior

Potentially a serious regression that breaks a lot of things in my apps.

Assuming a Plate Carree crs, longitudes returned by hv.streams.RangeXY were always given between -180 et 180.

They are now given in the (0, 360) interval when they are both in the western hemisphere.

Complete, minimal, self-contained example code that reproduces the issue

import panel as pn
import holoviews as hv
import geoviews as gv


def print_xrange(x_range, y_range):
    text.object = f'x_range: {x_range}'


coastline = gv.feature.coastline
xy_range = hv.streams.RangeXY(source=coastline)
xy_range.add_subscriber(print_xrange)
text = pn.pane.Str('')

pn.Column(coastline, text).servable()

Stack traceback and/or browser JavaScript console output

No errors

Screenshots or screencasts of the bug in action

Capture.video.du.2024-10-04.16-29-54.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions