QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsgeometry.h File Reference
#include <climits>
#include <functional>
#include <limits>
#include <memory>
#include "qgis_core.h"
#include "qgis_sip.h"
#include "qgsabstractgeometry.h"
#include "qgsfeatureid.h"
#include "qgspoint.h"
#include "qgspointxy.h"
#include "qgsvertexid.h"
#include <QDomDocument>
#include <QJsonObject>
#include <QSet>
#include <QString>
#include <QVector>
#include <nlohmann/json_fwd.hpp>
Include dependency graph for qgsgeometry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QgsGeometry::Error
 A geometry error. More...
class  QgsGeometry
 A geometry is the spatial representation of a feature. More...
class  QgsGeometryParameters
 Encapsulates parameters under which a geometry operation is performed. More...

Typedefs

typedef QVector< QgsPointXYQgsMultiPointXY
 A collection of QgsPoints that share a common collection of attributes.
typedef QVector< QgsPolygonXYQgsMultiPolygonXY
 A collection of QgsPolygons that share a common collection of attributes.
typedef QVector< QgsPolylineQgsMultiPolyline
 Multi polyline represented as a vector of polylines.
typedef QVector< QgsPolylineXYQgsMultiPolylineXY
 A collection of QgsPolylines that share a common collection of attributes.
typedef QVector< QgsPolylineXYQgsPolygonXY
 Polygon: first item of the list is outer ring, inner rings (if any) start from second item.
typedef QgsPointSequence QgsPolyline
 Polyline as represented as a vector of points.
typedef QVector< QgsPointXYQgsPolylineXY
 Polyline as represented as a vector of two-dimensional points.

Functions

CORE_EXPORT QDataStream & operator<< (QDataStream &out, const QgsGeometry &geometry)
 Writes the geometry to stream out. QGIS version compatibility is not guaranteed.
CORE_EXPORT QDataStream & operator>> (QDataStream &in, QgsGeometry &geometry)
 Reads a geometry from stream in into geometry. QGIS version compatibility is not guaranteed.

Typedef Documentation

◆ QgsMultiPointXY

typedef QVector<QgsPointXY> QgsMultiPointXY

A collection of QgsPoints that share a common collection of attributes.

Definition at line 96 of file qgsgeometry.h.

◆ QgsMultiPolygonXY

typedef QVector<QgsPolygonXY> QgsMultiPolygonXY

A collection of QgsPolygons that share a common collection of attributes.

Definition at line 107 of file qgsgeometry.h.

◆ QgsMultiPolyline

typedef QVector<QgsPolyline> QgsMultiPolyline

Multi polyline represented as a vector of polylines.

This type has full support for Z/M dimensions.

Since
QGIS 3.44

Definition at line 83 of file qgsgeometry.h.

◆ QgsMultiPolylineXY

A collection of QgsPolylines that share a common collection of attributes.

Definition at line 100 of file qgsgeometry.h.

◆ QgsPolygonXY

typedef QVector<QgsPolylineXY> QgsPolygonXY

Polygon: first item of the list is outer ring, inner rings (if any) start from second item.

Definition at line 90 of file qgsgeometry.h.

◆ QgsPolyline

Polyline as represented as a vector of points.

This type has full support for Z/M dimensions.

Definition at line 70 of file qgsgeometry.h.

◆ QgsPolylineXY

typedef QVector<QgsPointXY> QgsPolylineXY

Polyline as represented as a vector of two-dimensional points.

This type has no support for Z/M dimensions and use of QgsPolyline is encouraged instead.

Note
In QGIS 2.x this type was available as QgsPolyline.

Definition at line 61 of file qgsgeometry.h.

Function Documentation

◆ operator<<()

CORE_EXPORT QDataStream & operator<< ( QDataStream & out,
const QgsGeometry & geometry )

Writes the geometry to stream out. QGIS version compatibility is not guaranteed.

Definition at line 4497 of file qgsgeometry.cpp.

◆ operator>>()

CORE_EXPORT QDataStream & operator>> ( QDataStream & in,
QgsGeometry & geometry )

Reads a geometry from stream in into geometry. QGIS version compatibility is not guaranteed.

Definition at line 4503 of file qgsgeometry.cpp.