Skip to content

Commit

Permalink
Merge pull request #402 from dphogan/whitespace20200821
Browse files Browse the repository at this point in the history
Remove some whitespace at end of lines
  • Loading branch information
dphogan authored Aug 21, 2020
2 parents f48569f + 9a5d619 commit 8bc9422
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions solaris/tile/raster_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ def tile(self, src, dest_dir=None, channel_idxs=None, nodata=None,
dest.close()
src.close()
src = _check_rasterio_im_load(restricted_im_path) #if restrict_to_aoi, we overwrite the src to be the masked raster

tile_gen = self.tile_generator(src, dest_dir, channel_idxs, nodata,
alpha, self.aoi_boundary, restrict_to_aoi)

if self.verbose:
print('Beginning tiling...')
print('Beginning tiling...')
self.tile_paths = []
if nodata_threshold is not None:
if nodata_threshold > 1:
Expand Down
2 changes: 1 addition & 1 deletion solaris/tile/vector_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def clip_gdf(gdf, tile_bounds, min_partial_perc=0.0, geom_type="Polygon",
gdf['origlen'] = 0
# TODO must implement different case for lines and for spatialIndex
# (Assume RTree is already performed)

cut_gdf = gdf.copy()
cut_gdf.geometry = gdf.intersection(tb)

Expand Down

0 comments on commit 8bc9422

Please sign in to comment.