11 if (
"meters" == element.
text() )
15 else if (
"feet" == element.
text() )
19 else if (
"nautical miles" == element.
text() )
23 else if (
"degrees" == element.
text() )
27 else if (
"unknown" == element.
text() )
74 unitsString =
"meters";
80 unitsString =
"nautical miles";
83 unitsString =
"degrees";
87 unitsString =
"unknown";
A rectangle specified with double values.
QDomNode appendChild(const QDomNode &newChild)
void setXMaximum(double x)
Set the maximum x value.
double yMaximum() const
Get the y maximum value (top side of rectangle)
static QDomElement writeRectangle(const QgsRectangle &rect, QDomDocument &doc)
double toDouble(bool *ok) const
QDomElement toElement() const
double yMinimum() const
Get the y minimum value (bottom side of rectangle)
double xMaximum() const
Get the x maximum value (right side of rectangle)
void setYMinimum(double y)
Set the minimum y value.
static QGis::UnitType readMapUnits(const QDomElement &element)
QDomText createTextNode(const QString &value)
QDomNode namedItem(const QString &name) const
QString qgsDoubleToString(const double &a, const int &precision=17)
void setYMaximum(double y)
Set the maximum y value.
UnitType
Map units that qgis supports.
QDomElement createElement(const QString &tagName)
double xMinimum() const
Get the x minimum value (left side of rectangle)
static QgsRectangle readRectangle(const QDomElement &element)
void setXMinimum(double x)
Set the minimum x value.
static QDomElement writeMapUnits(QGis::UnitType units, QDomDocument &doc)