示例#1
0
 def get_data(self, element, ranges, style):
     self._norm_kwargs(element, ranges, style, element.vdims[0])
     style.pop('interpolation', None)
     xs, ys, zs = geo_mesh(element)
     xs = GridInterface._infer_interval_breaks(xs)
     ys = GridInterface._infer_interval_breaks(ys)
     if self.geographic:
         style['transform'] = element.crs
     return (xs, ys, zs), style, {}
示例#2
0
文件: __init__.py 项目: ioam/geoviews
 def get_data(self, element, ranges, style):
     self._norm_kwargs(element, ranges, style, element.vdims[0])
     style.pop('interpolation', None)
     xs, ys, zs = geo_mesh(element)
     xs = GridInterface._infer_interval_breaks(xs)
     ys = GridInterface._infer_interval_breaks(ys)
     if self.geographic:
         style['transform'] = element.crs
     return (xs, ys, zs), style, {}