2016-12-26 15:25:23 +01:00
|
|
|
/***************************************************************************
|
|
|
|
qgsserverprojectutils.sip
|
|
|
|
-------------------------
|
|
|
|
begin : December 19, 2016
|
|
|
|
copyright : (C) 2016 by Paul Blottiere
|
|
|
|
email : paul dot blottiere at oslandia dot com
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
2017-01-30 08:19:53 +01:00
|
|
|
%ModuleHeaderCode
|
|
|
|
#include "qgsserverprojectutils.h"
|
|
|
|
%End
|
2016-12-26 15:25:23 +01:00
|
|
|
|
|
|
|
/** \ingroup server
|
2017-01-30 08:19:53 +01:00
|
|
|
* The QgsServerProjectUtils namespace provides a way to retrieve specific
|
|
|
|
* entries from a QgsProject.
|
2016-12-26 15:25:23 +01:00
|
|
|
* @note added in QGIS 3.0
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
namespace QgsServerProjectUtils
|
2016-12-26 15:25:23 +01:00
|
|
|
{
|
|
|
|
/** Returns the maximum width for WMS images defined in a QGIS project.
|
|
|
|
* @param project the QGIS project
|
|
|
|
* @return width if defined in project, -1 otherwise.
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
int wmsMaxWidth( const QgsProject& project );
|
2016-12-26 15:25:23 +01:00
|
|
|
|
|
|
|
/** Returns the maximum height for WMS images defined in a QGIS project.
|
|
|
|
* @param project the QGIS project
|
|
|
|
* @return height if defined in project, -1 otherwise.
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
int wmsMaxHeight( const QgsProject& project );
|
2016-12-26 15:25:23 +01:00
|
|
|
|
|
|
|
/** Returns the WMS service url defined in a QGIS project.
|
|
|
|
* @param project the QGIS project
|
|
|
|
* @return url if defined in project, an empty string otherwise.
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
QString wmsServiceUrl( const QgsProject& project );
|
2016-12-26 15:25:23 +01:00
|
|
|
|
|
|
|
/** Returns the WFS service url defined in a QGIS project.
|
|
|
|
* @param project the QGIS project
|
|
|
|
* @return url if defined in project, an empty string otherwise.
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
QString wfsServiceUrl( const QgsProject& project );
|
2016-12-26 15:25:23 +01:00
|
|
|
|
|
|
|
/** Returns the WCS service url defined in a QGIS project.
|
|
|
|
* @param project the QGIS project
|
|
|
|
* @return url if defined in project, an empty string otherwise.
|
|
|
|
*/
|
2017-01-30 08:19:53 +01:00
|
|
|
QString wcsServiceUrl( const QgsProject& project );
|
2016-12-26 15:25:23 +01:00
|
|
|
};
|