You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What would be the appropriate class to deserialize to?
According to Utils.IdentifyStacType the type of the above json is SimpleLinksCollectionObject, however I cannot use it in StacConvert.Deserialize<T> because it does not inherit from IStacObject
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Emmanuel, thanks for the work you are doing in the DotNetStac project!
I'm currently trying to implement a Stac browser using DotNetStac but I'm having some issues you hopefully can help me with.
I can successfully deserialize to
StacCatalogandStacCollection, the problem is when I try to get thefeaturesinside a collection.i.e.: https://planetarycomputer.microsoft.com/api/stac/v1/collections/naip/items
{ "type": "FeatureCollection", "features": [ { "id": "tx_m_2609719_se_14_060_20201217", ... "type": "Feature", "links": [ { "rel": "collection", "type": "application/json", "href": "https://planetarycomputer.microsoft.com/api/stac/v1/collections/naip" }, ... ], } ] }What would be the appropriate class to deserialize to?
According to
Utils.IdentifyStacTypethe type of the above json isSimpleLinksCollectionObject, however I cannot use it inStacConvert.Deserialize<T>because it does not inherit fromIStacObjectThank you so much in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions