Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QGeoJson Namespace Reference

\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.
 
QTextStreamoperator<< (QTextStream &stream, const QGeoCoordinate &crd)
 
QTextStreamoperator<< (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.
 

Detailed Description

\inmodule QtLocation

From Qt 6.7, QGeoJson is a private API. The replacement API is the GeoJsonData QML type.

Function Documentation

◆ exportGeoJson()

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.

Note
This method performs no validation on the input.
See also
importGeoJson

Definition at line 603 of file qgeojson.cpp.

◆ importGeoJson()

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}.

Note
This method performs no validation on the input.
See also
exportGeoJson

Definition at line 468 of file qgeojson.cpp.

◆ operator<<() [1/2]

QTextStream & QGeoJson::operator<< ( QTextStream & stream,
const QGeoCoordinate & crd )

Definition at line 643 of file qgeojson.cpp.

◆ operator<<() [2/2]

QTextStream & QGeoJson::operator<< ( QTextStream & stream,
const QGeoShape & shape )

Definition at line 651 of file qgeojson.cpp.

◆ printQvariant()

static QString QGeoJson::printQvariant ( const QVariant v,
int tabs = 0 )
static

Definition at line 683 of file qgeojson.cpp.

References QT_FORWARD_DECLARE_CLASS().

+ Here is the call graph for this function:

◆ toString()

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.