Repository navigation
Replies: 1 comment
|
I have a few questions. I tried troubleshooting something a bit similar and got three layers of abstraction deep before I had to step away. I am using pypgstac so it's a layer of abstraction above this. We are also using stac-fastapi-pgstac as another abstraction layer. Are you using pgstac directly? If you ran pgstac directly from SQL then I have a couple of questions. Thanks for this discussion, it's helpful to think about. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Here is a link to a thread I started stac3698 channel.
I am adding new items to an existing collection but get this error:
{ "code": "CheckViolationError", "description": "new row for relation \"_items_2\" violates check constraint \"_items_2_dt\"\nDETAIL: Failing row contains (N069E285_2025_DEM_Phase3_cog.tif, 0103000020E6100000010000000500000087DF74E4CA3155C04A0551A1382C43..., dem-phase3, 2025-03-03 00:00:00+00, 2025-03-08 00:00:00+00, {\"bbox\": [-84.77800856984514, 38.3454782147988, -84.760390309226..., null)." }Nothing has changed in my scripts and the output looks the same as existing item json files. I understand that it's a constraint on the pgstac side, but I've tried removing start/end time and just having datetime, no date. nothing works. Here's a basic file:
Edited: Just to make sure my stac item was fine, I created a new temporary collection and posted the item no problem.
The only solution I can think to do is proceed with creating my items and saving to file. Grab my back up item json files, delete the collection, create a new, and post both the existing and new items together.
All reactions