Skip to content

Commit

Permalink
[Server] Rename QgsServerProjectUtils::wcsLayers to QgsServerProjectU…
Browse files Browse the repository at this point in the history
…tils::wcsLayerIds
  • Loading branch information
rldhont committed May 26, 2017
1 parent e7d45a0 commit 5b78297
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/server/qgsserverprojectutils.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
};
2 changes: 1 addition & 1 deletion src/server/qgsserverprojectutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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( "/" ) );
}
2 changes: 1 addition & 1 deletion src/server/qgsserverprojectutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion src/server/services/wcs/qgswcsdescribecoverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wcs/qgswcsgetcapabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wcs/qgswcsgetcoverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 5b78297

Please sign in to comment.