517 return returnedCoordinates;
524 for (
const auto &
position : positionsList)
526 return returnedCoordinates;
533 for (
const auto &
position : positionsList)
535 return returnedCoordinates;
545 return returnedObject;
551 QList <QGeoCoordinate> coordinatesList;
554 returnedObject.
setPath(coordinatesList);
555 return returnedObject;
569 return returnedObject;
578 for (
const auto &coordinate : coordinatesList) {
584 return returnedObject;
595 singleLinestringMap.
clear();
598 parsedLineString.
setPath(coordinatesList);
602 return returnedObject;
613 singlePolygonMap.
clear();
616 for (
int j = 0;
j < coordinatesList.
size(); ++
j) {
626 return returnedObject;
639 returnedObject.
append(geoMap);
641 return returnedObject;
665 for (
int i = 0;
i<7; ++
i) {
683 case MultiLineString: {
698 case GeometryCollection: {
708 return returnedObject;
715 for (
int i = 0;
i < featuresList.
size(); ++
i) {
724 returnedObject.
append(singleFeatureMap);
726 return returnedObject;
736 geoAlt = obtainedCoordinates.
altitude();
737 array.append(geoAlt);
748 for (
int i = 0;
i < obtainedCoordinatesList.
size(); ++
i) {
750 arrayPosition.
append(multiPosition);
752 lineCoordinates = arrayPosition;
753 return lineCoordinates;
761 for (
int i = 0;
i < obtainedCoordinates.size(); ++
i) {
763 arrayPath.
append(lineCoordinates);
765 polyCoordinates = arrayPath;
766 return polyCoordinates;
784 return parsedLineString;
794 obtainedCoordinatesPoly << parsedPoly.
perimeter();
797 obtainedCoordinatesPoly << parsedPoly.
holePath(
i);
802 return parsedPolygon;
808 QList <QGeoCoordinate> obtainedCoordinatesMP;
810 for (
const QVariant &exCircleVariantMap: multiCircleVariantList) {
816 return parsedMultiPoint;
825 for (
int i = 0;
i < multiPathList.
size(); ++
i) {
831 return parsedMultiLineString;
844 for (
int i = 0;
i < multiPolygonList.
size(); ++
i) {
848 for (currentHole = 0 ; currentHole < polyHoles; currentHole++)
851 parsedArrayPolygon.
append(polyCoordinates);
852 extractedCoordinatesValue.
clear();
854 QJsonValue exportedCoordinatesNodeValue = parsedArrayPolygon;
857 return parsedMultiPolygon;
869 for (
int i = 0;
i < geometriesList.
size(); ++
i) {
871 valueGeometries = parsedGeometry;
872 parsedGeometries.
append(valueGeometries);
874 QJsonValue exportedGeometriesValue = parsedGeometries;
897 return exportedGeometry;
909 if (!idNodeValue.
isNull())
911 return exportedFeature;
919 for (
int i = 0;
i < featureList.
size(); ++
i) {
924 return exportedFeatureCollection;
943 QVariantMap rootGeoJsonObject =
object.toVariantMap();
976 for (
int i = 0;
i < 9; ++
i) {
977 if (valueType == geoType[
i]) {
989 QList <QGeoCircle> testlist;
1001 case MultiLineString: {
1015 case MultiPolygon: {
1023 case GeometryCollection: {
1042 case FeatureCollection: {
1053 if (bboxNodeValue.
isValid()) {
1056 returnedList.
append(parsedGeoJsonMap);
1057 }
else if (
i >= 9) {
1062 return returnedList;
1104 for (
int i = 0;
i < bboxList.
size(); ++
i) {
1124 switch (shape.
type()) {
1133 for (
auto c:
path.path())
1140 stream <<
"QGeoPolygon(";
1147 stream <<
"QGeoShape(Unknown)";
1159 for (
int i = 0;
i< tabs;
i++) {
1162 if (
v.typeId() == QMetaType::QVariantList) {
1163 stream << sTabs <<
"[\n";
1165 for (
int i = 0;
i < l.
size(); ++
i)
1167 stream << sTabs <<
"]\n";
1168 }
else if (
v.typeId() == QMetaType::QVariantMap) {
1169 stream << sTabs <<
"{\n";
1186 for (
int i = 0;
i < l.
size(); ++
i)
1188 stream << sTabs <<
"}\n";
1208 stream <<
v.toString() <<
"\n";
void setCenter(const QGeoCoordinate ¢er)
Sets the center coordinate of this geo circle to center.
QGeoCoordinate center
This property holds the center coordinate for the geo circle.
qreal radius
This property holds the circle radius in meters.
double longitude
This property holds the longitude in decimal degrees.
double latitude
This property holds the latitude in decimal degrees.
double altitude
This property holds the altitude in meters above sea level.
void setLatitude(double latitude)
Sets the latitude (in decimal degrees) to latitude.
void setLongitude(double longitude)
Sets the longitude (in decimal degrees) to longitude.
void setAltitude(double altitude)
Sets the altitude (meters above sea level) to altitude.
void setPath(const QList< QGeoCoordinate > &path)
Sets all the elements of the path.
Q_INVOKABLE qsizetype holesCount() const
Returns the number of holes.
const QList< QGeoCoordinate > holePath(qsizetype index) const
Returns a QList<QGeoCoordinate> which represents the hole at index.
void setPerimeter(const QList< QGeoCoordinate > &path)
Sets the perimeter of the polygon based on a list of coordinates path.
QList< QGeoCoordinate > perimeter
Q_INVOKABLE void addHole(const QVariant &holePath)
Sets the holePath for a hole inside the polygon.
ShapeType type
This property holds the type of this geo shape.
\inmodule QtCore\reentrant
void append(const QJsonValue &value)
Inserts value at the end of the array.
\inmodule QtCore\reentrant
void setObject(const QJsonObject &object)
Sets object as the main object of this document.
QJsonObject object() const
Returns the QJsonObject contained in the document.
\inmodule QtCore\reentrant
iterator insert(const QString &key, const QJsonValue &value)
Inserts a new item with the key key and a value of value.
\inmodule QtCore\reentrant
bool isNull() const
Returns true if the value is null.
qsizetype size() const noexcept
bool isEmpty() const noexcept
QList< T > toList() const noexcept
const_reference at(qsizetype i) const noexcept
T value(qsizetype i) const
void append(parameter_type t)
iterator insert(const Key &key, const T &value)
T value(const Key &key, const T &defaultValue=T()) const
bool contains(const Key &key) const
QList< Key > keys() const
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString number(int, int base=10)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QString & remove(qsizetype i, qsizetype len)
Removes n characters from the string, starting at the given position index, and returns a reference t...
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
double toDouble(bool *ok=nullptr) const
Returns the variant as a double if the variant has userType() \l QMetaType::Double,...
static auto fromValue(T &&value) noexcept(std::is_nothrow_copy_constructible_v< T > &&Private::CanUseInternalSpace< T >) -> std::enable_if_t< std::conjunction_v< std::is_copy_constructible< T >, std::is_destructible< T > >, QVariant >
QMap< QString, QString > map
[6]
\inmodule QtLocation \keyword QGeoJson Namespace
QTextStream & operator<<(QTextStream &stream, const QGeoCoordinate &crd)
static QString printQvariant(const QVariant v, int tabs=0)
QJsonDocument exportGeoJson(const QVariantList &geoData)
This method exports the QVariantList geoData, expected to be structured like described in the section...
QVariantList importGeoJson(const QJsonDocument &geoJson)
This method imports the geoJson document, expected to contain valid GeoJSON data, into a QVariantList...
QString toString(const QVariantList &geoData)
This method accepts the QVariantList geoData, structured as described in \l {Importing GeoJSON},...
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter * iter
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
bool qIsNaN(qfloat16 f) noexcept
static QJsonValue exportArrayOfPositions(const QList< QGeoCoordinate > &obtainedCoordinatesList)
static QVariantList importMultiPoint(const QVariantMap &inputMap)
static QList< QList< QGeoCoordinate > > importArrayOfArrayOfPositions(const QVariant &arrayOfArrayofPositions)
static QVariantList importMultiPolygon(const QVariantMap &inputMap)
static QJsonObject exportFeature(const QVariantMap &featureMap)
static QVariantMap importGeometry(const QVariantMap &inputMap)
static QJsonObject exportPoint(const QVariantMap &pointMap)
static QGeoPolygon importPolygon(const QVariantMap &inputMap)
static QJsonObject exportFeatureCollection(const QVariantMap &featureCollection)
static QGeoCoordinate importPosition(const QVariant &position)
static QGeoCircle importPoint(const QVariantMap &inputMap)
static QVariantList importMultiLineString(const QVariantMap &inputMap)
static QJsonObject exportMultiPolygon(const QVariantMap &multiPolygonMap)
static QJsonObject exportGeometryCollection(const QVariantMap &geometryCollection)
static QJsonObject exportMultiLineString(const QVariantMap &multiLineStringMap)
static QVariantList importGeometryCollection(const QVariantMap &inputMap)
static QJsonObject exportPolygon(const QVariantMap &polygonMap)
static QJsonValue exportArrayOfArrayOfPositions(const QList< QList< QGeoCoordinate > > &obtainedCoordinates)
static QGeoPath importLineString(const QVariantMap &inputMap)
static QList< QGeoCoordinate > importArrayOfPositions(const QVariant &arrayOfPositions)
static QJsonObject exportLineString(const QVariantMap &lineStringMap)
static QJsonObject exportGeometry(const QVariantMap &geometryMap)
static QJsonValue exportPosition(const QGeoCoordinate &obtainedCoordinates)
static QVariantList importFeatureCollection(const QVariantMap &inputMap)
static QJsonObject exportMultiPoint(const QVariantMap &multiPointMap)
GLsizei const GLfloat * v
[13]
GLsizei const GLchar *const * path
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define QStringLiteral(str)