Skip to content

Commit

Permalink
Fixed projection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 4, 2020
1 parent 84c6a2d commit c915ce2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geoviews/operation/projection.py
Expand Up @@ -163,7 +163,8 @@ def _process_element(self, element):
xs, ys = (element.dimension_values(i) for i in range(2))
coordinates = self.p.projection.transform_points(element.crs, xs, ys)
mask = np.isfinite(coordinates[:, 0])
new_data = {k: v[mask] for k, v in element.columns(element.kdims).items()}
dims = [d for d in element.dimensions() if d not in (xdim, ydim)]
new_data = {k: v[mask] for k, v in element.columns(dims).items()}
new_data[xdim.name] = coordinates[mask, 0]
new_data[ydim.name] = coordinates[mask, 1]

Expand Down

0 comments on commit c915ce2

Please sign in to comment.