Coder Social home page Coder Social logo

new id when feature is added about resto HOT 3 CLOSED

lhcorralo avatar lhcorralo commented on August 19, 2024
new id when feature is added

from resto.

Comments (3)

jjrom avatar jjrom commented on August 19, 2024 1

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.

lhcorralo avatar lhcorralo commented on August 19, 2024

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.

jjrom avatar jjrom commented on August 19, 2024

Corrected in #345

from resto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.