23 #ifndef DIGIKAM_GEO_DATA_CONTAINER_H
24 #define DIGIKAM_GEO_DATA_CONTAINER_H
28 #include <QStringList>
39 : m_interpolated(false),
50 : m_interpolated(interpolated),
85 (a.m_altitude == m_altitude) &&
86 (a.m_latitude == m_latitude) &&
87 (a.m_longitude == m_longitude)
97 double altitude()
const {
return m_altitude; };
98 double latitude()
const {
return m_latitude; };
107 return QString::fromLatin1(
"geo:%1,%2,%3")
119 if (!url.startsWith(QLatin1String(
"geo:")))
131 const QStringList parts = url.mid(4).split(QLatin1Char(
','));
135 if ((parts.size() == 3) || (parts.size() == 2))
138 double ptLongitude = 0.0;
139 double ptAltitude = 0.0;
140 double ptLatitude = parts[0].toDouble(&okay);
144 ptLongitude = parts[1].toDouble(&okay);
147 if (okay && (parts.size() == 3))
149 ptAltitude = parts[2].toDouble(&okay);
Definition: geodatacontainer.h:35
bool isInterpolated() const
Definition: geodatacontainer.h:96
QString geoUrl() const
Definition: geodatacontainer.h:105
GeoDataContainer & operator=(const GeoDataContainer &data)
Definition: geodatacontainer.h:69
static GeoDataContainer fromGeoUrl(const QString &url, bool *const parsedOkay)
Definition: geodatacontainer.h:113
void setInterpolated(bool ite)
Definition: geodatacontainer.h:91
GeoDataContainer(double altitude, double latitude, double longitude, bool interpolated)
Definition: geodatacontainer.h:46
~GeoDataContainer()
Definition: geodatacontainer.h:57
QString longitudeString() const
Definition: geodatacontainer.h:103
double longitude() const
Definition: geodatacontainer.h:99
double latitude() const
Definition: geodatacontainer.h:98
double altitude() const
Definition: geodatacontainer.h:97
void setLatitude(double lat)
Definition: geodatacontainer.h:93
QString latitudeString() const
Definition: geodatacontainer.h:102
GeoDataContainer(const GeoDataContainer &data)
Definition: geodatacontainer.h:61
void setLongitude(double lng)
Definition: geodatacontainer.h:94
QString altitudeString() const
Definition: geodatacontainer.h:101
void setAltitude(double alt)
Definition: geodatacontainer.h:92
bool sameCoordinatesAs(const GeoDataContainer &a) const
Definition: geodatacontainer.h:82
GeoDataContainer()
Definition: geodatacontainer.h:38
Definition: geolocationedit.cpp:97