-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat(release): Support disabling default API Gateway endpoints and add custom soil-texture colormap to raster-api #445
Conversation
### Issue #441 ### What/Why? Add a custom colormap to titiler for soil texture datasets. The source parameter definition of the color mappings would otherwise be too long for firewall restrictions. ### Testing? I ran the titiler locally and previewed the results for one soil texture COG. <img width="1414" alt="soil-texture-preview" src="https://github.com/user-attachments/assets/63b50994-af0c-47a4-8004-b792a3d0848b">
### Issue NASA-IMPACT/veda-architecture#452 ### What/Why This disables the default API Gateway endpoints for the stac, raster, and ingest APIs. Instead, access to the APIs should be done through the custom domain endpoints. #### Testing Tested with my UAH jtran stack
for k in texture_categories.keys(): | ||
cmap[int(k)] = np.array(parse_color(texture_categories[k])) | ||
|
||
np.save("soil_texture.npy", cmap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I merged my other PR not realizing it would get merged into this as well. Can you update the title + description (sorry!)?
} | ||
|
||
cmap = np.zeros((256, 4), dtype=np.uint8) | ||
cmap[:] = np.array([0, 0, 0, 255]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmap[:, 3] = 255
Added in this release
Adds a new custom colormap option to the raster-api because the source parameter definitions for this colormap are too long for the production firewall restrictions. Why: Add custom colormap for soil texture collections #441
Add support to disable default API Gateway endpoints. Why: Prevent Users from Bypassing CloudFront to Invoke API Gateway Directly