-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server] WIP clean project parsing by using QgsProject
- Loading branch information
1 parent
8ba609e
commit 5c8360d
Showing
72 changed files
with
7,613 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/*************************************************************************** | ||
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. * | ||
* * | ||
***************************************************************************/ | ||
|
||
|
||
/** \ingroup server | ||
* The QgsServerProjectUtils class provides a way to retrieve specific entries | ||
* a QgsProject. | ||
* @note added in QGIS 3.0 | ||
*/ | ||
class QgsServerProjectUtils | ||
{ | ||
%TypeHeaderCode | ||
#include "qgsserverprojectutils.h" | ||
%End | ||
|
||
public: | ||
|
||
/** 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. | ||
*/ | ||
static int wmsMaxWidth( const QgsProject& project ); | ||
|
||
/** 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. | ||
*/ | ||
static int wmsMaxHeight( const QgsProject& project ); | ||
|
||
/** 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. | ||
*/ | ||
static QString wmsServiceUrl( const QgsProject& project ); | ||
|
||
/** 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. | ||
*/ | ||
static QString wfsServiceUrl( const QgsProject& project ); | ||
|
||
/** 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. | ||
*/ | ||
static QString wcsServiceUrl( const QgsProject& project ); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.