Skip to content

Commit

Permalink
Fix intersect
Browse files Browse the repository at this point in the history
  • Loading branch information
mzaglia committed Aug 5, 2020
1 parent f5ec6b6 commit c5131fe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion bdc_stac/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_collection_items(collection_id=None, item_id=None, bbox=None, time=None,

if intersects is not None:
where += [func.ST_Intersects(func.ST_GeomFromGeoJSON(
str(intersects['geometry'])), Tile.geom_wgs84)]
str(intersects)), Tile.geom_wgs84)]

if bbox is not None:
try:
Expand Down
1 change: 0 additions & 1 deletion bdc_stac/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ def stac_search():
intersects = request_json.get('intersects', None)

collections = request_json.get('collections', None)
collections = request_json.get('ids', None)
if collections is not None:
collections = ",".join([x for x in collections])

Expand Down

0 comments on commit c5131fe

Please sign in to comment.