Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Server] Rename QgsServerProjectUtils::wcsLayers to QgsServerProjectU…
- Loading branch information
|
@@ -243,5 +243,5 @@ namespace QgsServerProjectUtils |
|
|
* @param project the QGIS project |
|
|
* @return the Layer ids list. |
|
|
*/ |
|
|
QStringList wcsLayers( const QgsProject &project ); |
|
|
QStringList wcsLayerIds( const QgsProject &project ); |
|
|
}; |
|
@@ -263,7 +263,7 @@ QString QgsServerProjectUtils::wcsServiceUrl( const QgsProject &project ) |
|
|
return project.readEntry( QStringLiteral( "WCSUrl" ), QStringLiteral( "/" ), "" ); |
|
|
} |
|
|
|
|
|
QStringList QgsServerProjectUtils::wcsLayers( const QgsProject &project ) |
|
|
QStringList QgsServerProjectUtils::wcsLayerIds( const QgsProject &project ) |
|
|
{ |
|
|
return project.readListEntry( QStringLiteral( "WCSLayers" ), QStringLiteral( "/" ) ); |
|
|
} |
|
@@ -245,7 +245,7 @@ namespace QgsServerProjectUtils |
|
|
* \param project the QGIS project |
|
|
* \returns the Layer ids list. |
|
|
*/ |
|
|
SERVER_EXPORT QStringList wcsLayers( const QgsProject &project ); |
|
|
SERVER_EXPORT QStringList wcsLayerIds( const QgsProject &project ); |
|
|
}; |
|
|
|
|
|
#endif |
|
@@ -94,7 +94,7 @@ namespace QgsWcs |
|
|
} |
|
|
} |
|
|
|
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayers( *project ); |
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayerIds( *project ); |
|
|
for ( int i = 0; i < wcsLayersId.size(); ++i ) |
|
|
{ |
|
|
QgsMapLayer *layer = project->mapLayer( wcsLayersId.at( i ) ); |
|
|
|
@@ -260,7 +260,7 @@ namespace QgsWcs |
|
|
*/ |
|
|
QDomElement contentMetadataElement = doc.createElement( QStringLiteral( "ContentMetadata" )/*wcs:ContentMetadata*/ ); |
|
|
|
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayers( *project ); |
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayerIds( *project ); |
|
|
for ( int i = 0; i < wcsLayersId.size(); ++i ) |
|
|
{ |
|
|
QgsMapLayer *layer = project->mapLayer( wcsLayersId.at( i ) ); |
|
|
|
@@ -73,7 +73,7 @@ namespace QgsWcs |
|
|
} |
|
|
|
|
|
//get the raster layer |
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayers( *project ); |
|
|
QStringList wcsLayersId = QgsServerProjectUtils::wcsLayerIds( *project ); |
|
|
|
|
|
QgsRasterLayer *rLayer = nullptr; |
|
|
for ( int i = 0; i < wcsLayersId.size(); ++i ) |
|
|