Skip to content

Commit

Permalink
Issue #239 eliminate Point handling logic
Browse files Browse the repository at this point in the history
load_collection projected_polygons: the special case for Point handling can be removed without other changes apparently
  • Loading branch information
soxofaan committed Oct 18, 2022
1 parent 3afd276 commit 5e82cc0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions openeogeotrellis/layercatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ def highest_resolution(band_gsd, coordinate_index):

if not geometries:
projected_polygons = jvm.org.openeo.geotrellis.ProjectedPolygons.fromExtent(extent, srs)
elif isinstance(geometries, Point):
buffered_extent = jvm.geotrellis.vector.Extent(*buffer_point_approx(geometries, srs).bounds)
projected_polygons = jvm.org.openeo.geotrellis.ProjectedPolygons.fromExtent(buffered_extent, srs)
else:
projected_polygons = to_projected_polygons(
jvm, geometries, crs=srs, buffer_points=True
Expand Down

0 comments on commit 5e82cc0

Please sign in to comment.