-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsconfigparserutils.h
48 lines (40 loc) · 2.35 KB
/
qgsconfigparserutils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/***************************************************************************
qgsconfigparserutils.h
------------------------
begin : March 28, 2014
copyright : (C) 2014 by Marco Hugentobler
email : marco dot hugentobler at sourcepole dot ch
***************************************************************************/
/***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef QGSCONFIGPARSERUTILS_H
#define QGSCONFIGPARSERUTILS_H
#include <QStringList>
class QgsCoordinateReferenceSystem;
class QgsMapLayer;
class QgsRectangle;
class QDomDocument;
class QDomElement;
class QString;
class QgsConfigParserUtils
{
public:
static void appendCRSElementsToLayer( QDomElement& layerElement, QDomDocument& doc, const QStringList &crsList,
const QStringList& constrainedCrsList );
static void appendCRSElementToLayer( QDomElement& layerElement, const QDomElement& precedingElement,
const QString& crsText, QDomDocument& doc );
static void appendLayerBoundingBoxes( QDomElement& layerElem, QDomDocument& doc, const QgsRectangle& layerExtent,
const QgsCoordinateReferenceSystem& layerCRS );
/** Returns a list of supported EPSG coordinate system numbers from a layer*/
static QStringList createCRSListForLayer( QgsMapLayer* theMapLayer );
/** Returns default service capabilities from wms_metadata.xml if nothing else is defined*/
static void fallbackServiceCapabilities( QDomElement& parentElement, QDomDocument& doc );
static QList<QgsMapLayer*> layerMapToList( const QMap< int, QgsMapLayer* >& layerMap, bool reverseOrder = false );
};
#endif // QGSCONFIGPARSERUTILS_H