{"action":"created","issue":{"url":"https://api.github.com/repos/pyviz/EarthSim/issues/114","repository_url":"https://api.github.com/repos/pyviz/EarthSim","labels_url":"https://api.github.com/repos/pyviz/EarthSim/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/pyviz/EarthSim/issues/114/comments","events_url":"https://api.github.com/repos/pyviz/EarthSim/issues/114/events","html_url":"https://github.com/pyviz/EarthSim/issues/114","id":330733754,"node_id":"MDU6SXNzdWUzMzA3MzM3NTQ=","number":114,"title":"geopandas requires kdims?","user":{"login":"kcpevey","id":15659110,"node_id":"MDQ6VXNlcjE1NjU5MTEw","avatar_url":"https://avatars3.githubusercontent.com/u/15659110?v=4","gravatar_id":"","url":"https://api.github.com/users/kcpevey","html_url":"https://github.com/kcpevey","followers_url":"https://api.github.com/users/kcpevey/followers","following_url":"https://api.github.com/users/kcpevey/following{/other_user}","gists_url":"https://api.github.com/users/kcpevey/gists{/gist_id}","starred_url":"https://api.github.com/users/kcpevey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kcpevey/subscriptions","organizations_url":"https://api.github.com/users/kcpevey/orgs","repos_url":"https://api.github.com/users/kcpevey/repos","events_url":"https://api.github.com/users/kcpevey/events{/privacy}","received_events_url":"https://api.github.com/users/kcpevey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-08T17:01:49Z","updated_at":"2018-06-08T17:18:12Z","closed_at":null,"author_association":"COLLABORATOR","body":"I just updated my gv and hv to \r\n\tgeoviews                  1.5.1a3.post3+gd472e49\r\n\tholoviews                 1.10.4.post26+gdefe5c58\r\n\r\nThat broke a piece of previously working code:\r\n```\r\nhurr_path = [[-6349336.834486977, 1914106.9610980127],\r\n             [-7829193.668502837, 2640900.7616723403],\r\n             [-8389612.654597202, 3271372.0375195844],\r\n             [-9081379.141170258, 3113754.30206669],\r\n             [-9230240.799703084, 3604120.66437251],\r\n             [-9615528.894397419, 3700442.8550639264]]\r\nannot = PolyAndPointAnnotator(path_type=Path, polys=[hurr_path], tile_url='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}')\r\n```\r\nIt throw the following error:\r\n```\r\n---------------------------------------------------------------------------\r\nDataError                                 Traceback (most recent call last)\r\n<ipython-input-7-c8b7f85a06e6> in <module>()\r\n      1 \r\n----> 2 annot = PolyAndPointAnnotator(path_type=Path, polys=[hurr_path], tile_url='https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}')\r\n      3 (annot.tiles * datashade(trimesh.edgepaths, cmap=['yellow']) * annot.polys * annot.points + annot.poly_table).options(shared_datasource=True, clone=False).cols(1)\r\n\r\nc:\\projects\\ers\\github\\earthsim_pyviz\\adhmodel\\earthsim\\earthsim\\annotators.py in __init__(self, poly_data, **params)\r\n    168             self.poly_stream.event(data={kd.name: [p.dimension_values(kd) for p in poly_data]\r\n    169                                          for kd in self.polys.kdims})\r\n--> 170         self.poly_table = Table(self.polys.data, self.poly_columns, []).opts(plot=plot, style=style)\r\n    171 \r\n    172     def view(self):\r\n\r\nc:\\projects\\ers\\github\\holoviews\\master\\holoviews\\holoviews\\core\\data\\__init__.py in __init__(self, data, kdims, vdims, **kwargs)\r\n    204         validate_vdims = kwargs.pop('_validate_vdims', True)\r\n    205         initialized = Interface.initialize(type(self), data, kdims, vdims,\r\n--> 206                                            datatype=kwargs.get('datatype'))\r\n    207         (data, self.interface, dims, extra_kws) = initialized\r\n    208         super(Dataset, self).__init__(data, **dict(kwargs, **dict(dims, **extra_kws)))\r\n\r\nc:\\projects\\ers\\github\\holoviews\\master\\holoviews\\holoviews\\core\\data\\interface.py in initialize(cls, eltype, data, kdims, vdims, datatype)\r\n    196         for interface in prioritized:\r\n    197             try:\r\n--> 198                 (data, dims, extra_kws) = interface.init(eltype, data, kdims, vdims)\r\n    199                 break\r\n    200             except DataError:\r\n\r\nc:\\projects\\ers\\github\\geoviews\\master\\geoviews\\geoviews\\data\\geopandas.py in init(cls, eltype, data, kdims, vdims)\r\n     30             if len(kdims) != 2:\r\n     31                 raise DataError(\"Expected two kdims to use GeoDataFrame, found %d.\"\r\n---> 32                                 % len(kdims))\r\n     33         else:\r\n     34             kdims = eltype.kdims\r\n\r\nDataError: Expected two kdims to use GeoDataFrame, found 1.\r\n```\r\nIs it now a requirement to pass `kdims` if I'm going to pass `polys`?"},"comment":{"url":"https://api.github.com/repos/pyviz/EarthSim/issues/comments/395828170","html_url":"https://github.com/pyviz/EarthSim/issues/114#issuecomment-395828170","issue_url":"https://api.github.com/repos/pyviz/EarthSim/issues/114","id":395828170,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTgyODE3MA==","user":{"login":"philippjfr","id":1550771,"node_id":"MDQ6VXNlcjE1NTA3NzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1550771?v=4","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T17:18:12Z","updated_at":"2018-06-08T17:18:12Z","author_association":"CONTRIBUTOR","body":"I've got an update to fix this locally, which I'll push but I'll also make a small adjustment in bokeh to ensure this doesn't error in the first place (it should just fall back to using the regular pandas interface)."}}
{"actor":{"display_login":"philippjfr"}}