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

Inconsistency in specification of point_columns #217

Open
kcpevey opened this issue Sep 7, 2018 · 0 comments
Open

Inconsistency in specification of point_columns #217

kcpevey opened this issue Sep 7, 2018 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@kcpevey
Copy link
Collaborator

kcpevey commented Sep 7, 2018

If I don't specify point_columns in my annotator instantiation, point_table will automatically add the vdims that are already in gv element BUT it also adds the default Size column.

When I specify specific point_columns, it doesn't actually use what I've specified, it uses ONLY the vdims from the gv element (without the default Size column.

point_columns

hurricane_path_color.txt

data_df = pd.read_csv('../../data/hurricane_path_color.txt', delimiter=',', header=0, parse_dates=['Datetime'])
gvpath = gv.Path([data_df], kdims=['Longitude', 'Latitude'], vdims=['Datetime','Pressure','Max_Wind_Speed','Radius','Direction_Degrees','Direction_Speed'], crs=proj)
gvpoint = gv.Points(data_df, kdims=['Longitude', 'Latitude'], vdims=['Datetime','Pressure','Max_Wind_Speed','Radius','Direction_Degrees','Direction_Speed'], crs=proj)
annot = PolyAndPointAnnotator(path_type=Path, polys=gvpath, points=gvpoint,
                              point_columns=['Pressure','Max_Wind_Speed'], 
                              tile_url='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}',
                              crs=proj)

(annot.tiles * annot.polys * annot.points + annot.point_table).cols(1) 
@philippjfr philippjfr added the bug Something isn't working label Sep 7, 2018
@kcpevey kcpevey added this to the Next release milestone Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants