![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtLocation More...
Functions | |
QVariantList | importGeoJson (const QJsonDocument &geoJson) |
This method imports the geoJson document, expected to contain valid GeoJSON data, into a QVariantList structured like described in the section \l {Importing GeoJSON}. | |
QJsonDocument | exportGeoJson (const QVariantList &geoData) |
This method exports the QVariantList geoData, expected to be structured like described in the section \l {Importing GeoJSON}, to a QJsonDocument containing the data converted to GeoJSON. | |
QTextStream & | operator<< (QTextStream &stream, const QGeoCoordinate &crd) |
QTextStream & | operator<< (QTextStream &stream, const QGeoShape &shape) |
static QString | printQvariant (const QVariant v, int tabs=0) |
QString | toString (const QVariantList &geoData) |
This method accepts the QVariantList geoData, structured as described in \l {Importing GeoJSON}, and returns a string containing the same data in a readable form. | |
\inmodule QtLocation
From Qt 6.7, QGeoJson is a private API. The replacement API is the GeoJsonData QML type.
QJsonDocument QGeoJson::exportGeoJson | ( | const QVariantList & | geoData | ) |
This method exports the QVariantList geoData, expected to be structured like described in the section \l {Importing GeoJSON}, to a QJsonDocument containing the data converted to GeoJSON.
Definition at line 603 of file qgeojson.cpp.
QVariantList QGeoJson::importGeoJson | ( | const QJsonDocument & | geoJson | ) |
This method imports the geoJson document, expected to contain valid GeoJSON data, into a QVariantList structured like described in the section \l {Importing GeoJSON}.
Definition at line 468 of file qgeojson.cpp.
QTextStream & QGeoJson::operator<< | ( | QTextStream & | stream, |
const QGeoCoordinate & | crd ) |
Definition at line 643 of file qgeojson.cpp.
QTextStream & QGeoJson::operator<< | ( | QTextStream & | stream, |
const QGeoShape & | shape ) |
Definition at line 651 of file qgeojson.cpp.
Definition at line 683 of file qgeojson.cpp.
References QT_FORWARD_DECLARE_CLASS().
QString QGeoJson::toString | ( | const QVariantList & | geoData | ) |
This method accepts the QVariantList geoData, structured as described in \l {Importing GeoJSON}, and returns a string containing the same data in a readable form.
Definition at line 748 of file qgeojson.cpp.