Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingest): float proj issue #316

Merged
merged 4 commits into from
Feb 26, 2024
Merged

fix(ingest): float proj issue #316

merged 4 commits into from
Feb 26, 2024

Conversation

slesaad
Copy link
Member

@slesaad slesaad commented Feb 21, 2024

What

Fixes the float epsg code issue caused by dynamodb serialization

Picked up the fix from developmentseed/eoapi-cdk#26

How test

Tested by running ingest from here: https://mv5tl66nca.execute-api.us-west-2.amazonaws.com/
Test item: https://vr3ofct5u8.execute-api.us-west-2.amazonaws.com/api/stac/collections/geoglam/items/CropMonitor_202205_test_2

import pystac

item = pystac.Item.from_file("https://vr3ofct5u8.execute-api.us-west-2.amazonaws.com/api/stac/collections/geoglam/items/CropMonitor_202205_test_2")
print(item.properties["proj:epsg"]) # should give 4326 instead of 4326.0

4326

@slesaad slesaad marked this pull request as ready for review February 21, 2024 17:18
@slesaad slesaad requested a review from anayeaye February 21, 2024 17:18
@anayeaye anayeaye merged commit 0e2bc31 into develop Feb 26, 2024
4 checks passed
@anayeaye anayeaye deleted the fix/float-epsg branch February 26, 2024 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants