Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
adehecq committed Sep 28, 2023
1 parent d253636 commit bd7e8ba
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions geoutils/projtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit bd7e8ba

Please sign in to comment.