Skip to content

Commit

Permalink
Fixed flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 17, 2019
1 parent e58b193 commit 0033ef0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions geoviews/operation/projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from cartopy import crs as ccrs
from cartopy.img_transform import warp_array, _determine_bounds
from holoviews.core.data import MultiInterface
from holoviews.core.util import cartesian_product, get_param_values, max_extents, pd
from holoviews.core.util import cartesian_product, get_param_values, pd
from holoviews.operation import Operation
from shapely.geometry import Polygon, MultiPolygon
from shapely.geometry.collection import GeometryCollection
Expand Down Expand Up @@ -62,12 +62,10 @@ def _process_element(self, element):
' Spherical contouring is not supported - '
' consider using PlateCarree/RotatedPole.')

boundary = Polygon(crs.boundary)
if isinstance(element, Polygons):
geoms = polygons_to_geom_dicts(element, skip_invalid=False)
else:
geoms = path_to_geom_dicts(element, skip_invalid=False)
data_bounds = max_extents([g['geometry'].bounds for g in geoms])

projected = []
for path in geoms:
Expand Down

0 comments on commit 0033ef0

Please sign in to comment.