Skip to main content
Question

STAC Asset Reader


jlw_tyrens
Contributor
Forum|alt.badge.img+2

Hi guys!

I'm trying to understand how the STAC Asset reader works.

In my case, I have a URL to an item, but when I try to access it, it complains that I don't have authentication. When I then check the "Use authentication" box, I only get options related to AWS, and not the service I created.

I've used the URL to retrieve data via Radiant Earth Stac browser with my credentials and it works there.

Has anyone used this reader to extract data from sources other than the default ones?

4 replies

kailinatsafe
Safer
Forum|alt.badge.img+21

Hello ​@jlw_tyrens, so there are two different levels of authentication that may be used for STAC. One at the dataset level and the other at the asset level. I believe authentication support has been implemented by service, meaning we can only read protected STAC datasets from the named services you see in the STAC Type parameter.  Can you let me know which STAC assets you are trying to read? Happy to help, Kailin. 


jlw_tyrens
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • March 31, 2025

Hello Kailin! I’m trying to read STAC Assets from https://api.lantmateriet.se/stac-vektor/v1/, it is open data from the Swedish mapping, cadastral and land registration authority. I can consume the data in a stac browser


kailinatsafe
Safer
Forum|alt.badge.img+21

Hello ​@jlw_tyrens, thank you for sharing the URL. I think this is a case where authentication has been enrolled at the asset level, meaning you can search and query through the dataset without authenticating, but you require authentication to access or retrieve the actual assets themselves. The same can be seen in browser, can query through collections/items, but prompted to sign in at https://dl1.lanmateriet.se when entering the asset zip/download URL. I have filed an issue with our development team for further investigation: FMEENGINE-86391. Let me know if you have any questions! Happy to help, Kailin.


kailinatsafe
Safer
Forum|alt.badge.img+21

Hello ​@jlw_tyrens, thanks for your patience! We took some time to investigate this issue and there turns out to be a few things to discuss. We would appreciate any feedback you can share!

Firstly, the asset type is application/zip, which is not supported by the reader at this time. Because we cannot determine the underlying content(s) of the zip file until runtime, there is no way for FME to read and produce features from it. 

Secondly, this asset requires a type of authentication that is not supported in FME Form. 

Since the STAC asset in question is a Geopackage, an ideal scenario would be to use the STAC Metadata Reader to query for the zip asset URL and HTTPCaller/FeatureReader to consume the data. 

For this to work successfully, we would first need to look into adding the appropriate authentication support. In order to support your authentication type, we would need access to account (username/password) credentials for development. If this is something you would like to work with us on, please submit a support case. Happy to help, Kailin.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings