From 279792e2f8583b1afc4f74ea34670a1437ff8dd5 Mon Sep 17 00:00:00 2001 From: uclaros Date: Thu, 12 Jun 2025 14:39:52 +0300 Subject: [PATCH] Allow Collections without links --- src/core/stac/qgsstacparser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/stac/qgsstacparser.cpp b/src/core/stac/qgsstacparser.cpp index 07ea5925f64..f8223bc4d1e 100644 --- a/src/core/stac/qgsstacparser.cpp +++ b/src/core/stac/qgsstacparser.cpp @@ -522,7 +522,9 @@ QgsStacCollectionList *QgsStacParser::collections() try { - links = parseLinks( mData.at( "links" ) ); + // some servers don't include links here, let's be more forgiving + if ( mData.contains( "links" ) ) + links = parseLinks( mData.at( "links" ) ); cols.reserve( mData.at( "collections" ).size() ); for ( auto &col : mData.at( "collections" ) )