Skip to content

Commit

Permalink
remove self-updating stac api
Browse files Browse the repository at this point in the history
  • Loading branch information
sclaw committed Nov 8, 2024
1 parent 5084e9b commit 0048bb7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 263 deletions.
4 changes: 1 addition & 3 deletions ras_stac/ras1d/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from pystac.item import Item
from shapely import to_geojson

from ras_stac.ras1d.update_stac_api import post_item
from ras_stac.ras1d.utils.classes import (
GenericAsset,
GeometryAsset,
Expand Down Expand Up @@ -375,8 +374,7 @@ def append_geopackage(in_prefix: str, crs: str, out_prefix: str):
stac_item["assets"]["GeoPackage_file"] = gpkg_asset.to_stac().to_dict()
out_obj = json.dumps(stac_item).encode()
save_bytes_s3(out_obj, stac_path)
post_item(stac_item)
return {"in_path": in_prefix, "crs": crs, "thumb_path": None, "stac_path": stac_path}
return {"in_path": in_prefix, "crs": crs, "thumb_path": None, "stac_path": stac_path, "gpkg_path": gpkg_path}


if __name__ == "__main__":
Expand Down
41 changes: 0 additions & 41 deletions ras_stac/ras1d/headers.py

This file was deleted.

219 changes: 0 additions & 219 deletions ras_stac/ras1d/update_stac_api.py

This file was deleted.

Binary file modified requirements.txt
Binary file not shown.

0 comments on commit 0048bb7

Please sign in to comment.