简体   繁体   中英

Geoviews Plots Displays Incorrect Longitude & Latitude / Displays Them in the Wrong Format

I have a Point with a longitude = -0.050122 and latitude = 52.699185 .

When I plot this in Geoviews, this Point is incorrectly displayed:

pin = gv.Points(gdf_pin,vdims=["avg_cust_dist_trav_km","avg_cust_dist_trav_miles"]
                          ).opts(tools=["hover","tap"],
                                 color="green",size = 15,
                                 line_color="white",hover_color="orange",
                                 hover_line_color="white",line_width=2)

Output:

在此处输入图像描述

The same thing also seems to happen for Polygon plots produced using Geoviews as well.

Is this a bug or do I have to do something else to correctly display longitudes and latitudes?

Thanks

Just to clarify, the point itself looks correctly displayed (plotted in the correct location), but the hover information is displayed in Web Mercator coordinates rather than the more human-readable native lat/lon values. I believe this is a bug; see https://github.com/holoviz/geoviews/issues/470 .

(Not sure what the "th" in the hover is, though; I don't see that in my copy.)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM