61 if ( srcAuthId == dstAuthId )
67 if ( ctIt !=
mEntries.constEnd() && ctIt->srcAuthId == srcAuthId && ctIt->destAuthId == dstAuthId )
82 if ( !layerCoordTransformInfoElem.
isNull() )
86 for (
int i = 0; i < layerCoordinateTransformList.
size(); ++i )
88 layerCoordTransformElem = layerCoordinateTransformList.
at( i ).
toElement();
96 layerCoordTransformElem.
attribute(
"srcAuthId" ),
97 layerCoordTransformElem.
attribute(
"destAuthId" ),
98 layerCoordTransformElem.
attribute(
"srcDatumTransform",
"-1" ).
toInt(),
99 layerCoordTransformElem.
attribute(
"destDatumTransform",
"-1" ).
toInt()
113 layerCoordTransformElem.
setAttribute(
"layerid", coordIt.key() );
114 layerCoordTransformElem.
setAttribute(
"srcAuthId", coordIt->srcAuthId );
115 layerCoordTransformElem.
setAttribute(
"destAuthId", coordIt->destAuthId );
118 layerCoordTransformInfo.
appendChild( layerCoordTransformElem );
QDomNodeList elementsByTagName(const QString &tagname) const
Base class for all map layer types.
QDomNode appendChild(const QDomNode &newChild)
QString attribute(const QString &name, const QString &defValue) const
const QgsCoordinateReferenceSystem & crs() const
Returns layer's spatial reference system.
QDomElement toElement() const
QString number(int n, int base)
QString id() const
Get this layer's unique ID, this ID is used to access this layer from map layer registry.
void setAttribute(const QString &name, const QString &value)
int toInt(bool *ok, int base) const
QDomElement firstChildElement(const QString &tagName) const
Class for storing a coordinate reference system (CRS)
QDomElement createElement(const QString &tagName)
QString authid() const
Returns the authority identifier for the CRS, which includes both the authority (eg EPSG) and the CRS...
QDomNode at(int index) const