Comments (3)
Hi @lhcorralo - thanks for raising this point.
resto existed well before the STAC specification. The original resto API was aligned with OGC OpenSearch Extension for Earth Observation specification with the objective to imagery from different producers. Each producer has his own naming convention for its product aka the "productIdentifier". In order to harmonize the naming convention, resto generates a unique uuid identifier from this original productIdentifier.
With the move to STAC, the product identifier is the item ID. However, the STAC specification stated that "The specification is quite flexible on ID's, primarily so that existing providers can easily use their same ID when they translate their data into STAC". So there is no requirement that the ID is an UUID and as a consequence (and by design), resto converts this identifier to produce its own UUID identifier.
I understand that this is a bit confusing specially if the input id is already a valid UUID. I should probably update the code to leave this untouched in this case
from resto.
Hi @jjrom
Uff, I think this is a delicated point. I understand the problem, but I cannot see an easy solution... Keeping the 'id' if it is an UUID would only fix my particular case. I guess that, in order to make Resto more STAC compatible, the solution would be changing the UUID by a string, but well... that kind of things leads to broken compatibility and pain... and nobody likes painful things.
I guess it is better to leave this as is by now, and leave this kind of changes for Resto 7.x branches. However, It would be nice to have documented this kind of "gotchas".
I am looking forward to hearing your opinion (as both resto developer and STAC/OGC veteran).
Thanks :)
Luis
from resto.
Corrected in #345
from resto.
Related Issues (20)
- /children does not return all child link relations from landing page HOT 2
- Root catalog has invalid STAC object somewhere in the child & item link relation tree HOT 5
- Do Features endpoints support fields, sort, and filter extensions? HOT 3
- href link should be encoded
- Collection search not working HOT 4
- Search api not working with OpticalModel filters HOT 4
- Sample bash scripts HOT 1
- Delete Catalog Function HOT 1
- Change user rights HOT 1
- [EDITO](https://catalog.dive.edito.eu) feedbacks
- Facet primary key should use normalize(id) and normalize(pid) not id and pid HOT 1
- Catalog API only managed catalog and collection children
- Check catalog rights when creating/updating an item
- Rewrite facets/catalogs/keywords support
- Prevent cyclic catalog creation
- Add a collectionMinMatch configuration HOT 1
- Allow to choose resto internal user ID when using an external Identity Provider
- Documentation insertFeature body is not inputFeature schema HOT 1
- Inserting features creates catalogs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resto.