From bd7e8ba6830645c989a7373f55a2abb82320426d Mon Sep 17 00:00:00 2001 From: adehecq <3285905+adehecq@users.noreply.github.com> Date: Thu, 28 Sep 2023 16:06:26 +0200 Subject: [PATCH] Linting --- geoutils/projtools.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/geoutils/projtools.py b/geoutils/projtools.py index 840c07e9..42667afa 100644 --- a/geoutils/projtools.py +++ b/geoutils/projtools.py @@ -12,8 +12,8 @@ import numpy as np import pyproj import rasterio as rio -import shapely.ops import shapely.geometry +import shapely.ops from rasterio.crs import CRS from shapely.geometry.base import BaseGeometry from shapely.geometry.polygon import Polygon @@ -352,7 +352,9 @@ def _get_bounds_projected( return new_bounds -def _densify_geometry(line_geometry: shapely.geometry.LineString, densify_pts: int = 5000) -> shapely.geometry.LineString: +def _densify_geometry( + line_geometry: shapely.geometry.LineString, densify_pts: int = 5000 +) -> shapely.geometry.LineString: """ Densify a linestring geometry. @@ -415,7 +417,9 @@ def _get_footprint_projected( left, bottom, right, top = bounds # Create linestring - linestring = shapely.geometry.LineString([[left, bottom], [left, top], [right, top], [right, bottom], [left, bottom]]) + linestring = shapely.geometry.LineString( + [[left, bottom], [left, top], [right, top], [right, bottom], [left, bottom]] + ) # Densify linestring densified_line_geometry = _densify_geometry(linestring, densify_pts=densify_pts)