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

Add new script to link COGs to contextual_layers table #930

Conversation

BielStela
Copy link
Contributor

This PR lays the ground to include the new shiny tiler into the ingestion process by allowing linking COG files to the contextual layers table (or even urls with external tilers!). It works similarly to the other ingestion scripts called from the make. More or less it does:

Usage: cog_to_contextual_layer_linker.py [OPTIONS]

  Link a COG to a contextual layer in the database to be used by our own tiler
  or simply and external tiler url.

Options:
  --cog TEXT                Name of the cog in the S3 bucket or URL to
                            external cog.  [required]
  --name TEXT               Name of the contextual layer. Must be unique and
                            the metadata json file with the same name and
                            suffixed _metadata must exist.  [required]
  --category TEXT           Category of the contextual layer.  [required]
  --tiler_param, --tp TEXT  Tiler default parameters in the form of key=value.
  --help                    Show this message and exit.

so it can be called in the makefile like

python cog_to_contextual_layer_linker.py --cog bluewater.tif --name bluewater_footprint --category "Environmental datasets" --tiler_param colormap=viridis --tp rescale=-18,850

@vercel
Copy link

vercel bot commented Mar 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
landgriffon-client ⬜️ Ignored (Inspect) May 15, 2023 9:41am
landgriffon-cookie-traceability ⬜️ Ignored (Inspect) May 15, 2023 9:41am

@BielStela BielStela force-pushed the LANDGRIF-1276-Change-contextual-layer-ingestion-to-new-data-model branch from 08da81b to e2c1e48 Compare March 31, 2023 16:15
@BielStela BielStela force-pushed the LANDGRIF-1276-Change-contextual-layer-ingestion-to-new-data-model branch 2 times, most recently from 6160504 to 7e3658e Compare April 11, 2023 11:17
@BielStela BielStela force-pushed the LANDGRIF-1276-Change-contextual-layer-ingestion-to-new-data-model branch from 882c885 to 877eb4e Compare May 15, 2023 09:41
@BielStela BielStela merged commit 43cc5d5 into dev May 19, 2023
@alexeh alexeh deleted the LANDGRIF-1276-Change-contextual-layer-ingestion-to-new-data-model branch October 10, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants