knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowl
src
knowGIS
GeoPoint.h
1
#pragma once
2
3
#include <Cartography/GeoPoint.h>
4
5
#include <clog_qt>
6
#include <cres_qt>
7
8
namespace
knowGIS
9
{
13
class
GeoPoint
:
public
Cartography::GeoPoint
14
{
15
public
:
16
using
Cartography::GeoPoint::GeoPoint;
17
GeoPoint
(
const
Cartography::GeoPoint& _rhs) : Cartography::GeoPoint(_rhs) {}
18
QByteArray md5()
const
;
19
QJsonValue toJsonValue()
const
;
20
static
cres_qresult<GeoPoint> fromJsonValue(
const
QJsonValue& _value);
21
QCborValue toCborValue()
const
;
22
static
cres_qresult<GeoPoint> fromCborValue(
const
QCborValue& _value);
23
};
24
}
// namespace knowGIS
25
26
clog_format_declare_formatter(
knowGIS::GeoPoint
)
27
{
28
return
format_to(ctx.out(),
"[lon: {} lat: {} alt: {}]"
, p.longitude(), p.latitude(),
29
p.altitude());
30
}
31
32
#include <knowCore/MetaType.h>
33
KNOWCORE_DECLARE_FULL_METATYPE(knowGIS, GeoPoint);
knowGIS::GeoPoint
Definition
GeoPoint.h:14
Generated by
1.12.0