Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gv.Polygons doesn't display Geometry correctly but hv.Polygons does #538

Open
vutrungduc7593 opened this issue Nov 8, 2021 · 0 comments

Comments

@vutrungduc7593
Copy link

vutrungduc7593 commented Nov 8, 2021

ALL software version info

OS: Ubuntu 20.04

Browser: Chrome Version 95.0.4638.69 (Official Build) (64-bit)

Name Version Build Channel
bokeh 2.3.2 py38h578d9bd_0 conda-forge
holoviews 1.14.4 pyhd8ed1ab_0 conda-forge
geopandas 0.9.0 pyhd8ed1ab_1 conda-forge
geoviews-core 1.9.1 pyha770c72_0 conda-forge
jupyter_client 6.1.12 pyhd8ed1ab_0 conda-forge
jupyter_core 4.7.1 py38h578d9bd_0 conda-forge
jupyter_server 1.8.0 pyhd8ed1ab_0 conda-forge
jupyterlab 3.0.16 pyhd8ed1ab_0 conda-forge
jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge
jupyterlab_server 2.6.0 pyhd8ed1ab_0 conda-forge
notebook 6.4.0 pyha770c72_0 conda-forge

Description of expected behavior and the observed behavior

gv.Polygons doesn't display correctly but hv.Polygons does

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

GeoJSON file: Download

import pandas as pd
import holoviews as hv
import geoviews as gv
import geoviews.feature as gf
import cartopy
import cartopy.feature as cf

from geoviews import opts
from cartopy import crs as ccrs

gv.extension('bokeh')

df = gpd.read_file("./error-geojson.geojson")
projected_df = df.to_crs('EPSG:4326')
projected_df = projected_df[projected_df['FID'] == 4]

gv.Polygons(projected_df).opts(width=600)

hv.Polygons(projected_df).opts(width=600)

Screenshots or screencasts of the bug in action

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant