mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Allow Collections without links
This commit is contained in:
parent
90fdc28320
commit
279792e2f8
@ -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" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user