|
| QgsDistanceArea () |
| Constructor. More...
|
|
| QgsDistanceArea (const QgsDistanceArea &other) |
| Copy constructor. More...
|
|
| ~QgsDistanceArea () |
|
QgsUnitTypes::AreaUnit | areaUnits () const |
| Returns the units of area for areal calculations made by this object. More...
|
|
double | bearing (const QgsPointXY &p1, const QgsPointXY &p2) const SIP_THROW(QgsCsException) |
| Computes the bearing (in radians) between two points. More...
|
|
QgsPointXY | computeSpheroidProject (const QgsPointXY &p1, double distance=1, double azimuth=M_PI_2) const |
| Given a location, an azimuth and a distance, computes the location of the projected point. More...
|
|
double | convertAreaMeasurement (double area, QgsUnitTypes::AreaUnit toUnits) const |
| Takes an area measurement calculated by this QgsDistanceArea object and converts it to a different areal unit. More...
|
|
double | convertLengthMeasurement (double length, QgsUnitTypes::DistanceUnit toUnits) const |
| Takes a length measurement calculated by this QgsDistanceArea object and converts it to a different distance unit. More...
|
|
QString | ellipsoid () const |
| Returns ellipsoid's acronym. More...
|
|
QgsCoordinateReferenceSystem | ellipsoidCrs () const |
| Returns the ellipsoid (destination) spatial reference system. More...
|
|
double | ellipsoidInverseFlattening () const |
| Returns ellipsoid's inverse flattening. More...
|
|
double | ellipsoidSemiMajor () const |
| Returns the ellipsoid's semi major axis. More...
|
|
double | ellipsoidSemiMinor () const |
| Returns ellipsoid's semi minor axis. More...
|
|
QVector< QVector< QgsPointXY > > | geodesicLine (const QgsPointXY &p1, const QgsPointXY &p2, double interval, bool breakLine=false) const |
| Calculates the geodesic line between p1 and p2, which represents the shortest path on the ellipsoid between these two points. More...
|
|
double | latitudeGeodesicCrossesAntimeridian (const QgsPointXY &p1, const QgsPointXY &p2, double &fractionAlongLine) const |
| Calculates the latitude at which the geodesic line joining p1 and p2 crosses the antimeridian (longitude +/- 180 degrees). More...
|
|
QgsUnitTypes::DistanceUnit | lengthUnits () const |
| Returns the units of distance for length calculations made by this object. More...
|
|
double | measureArea (const QgsGeometry &geometry) const |
| Measures the area of a geometry. More...
|
|
double | measureLength (const QgsGeometry &geometry) const |
| Measures the length of a geometry. More...
|
|
double | measureLine (const QgsPointXY &p1, const QgsPointXY &p2) const |
| Measures the distance between two points. More...
|
|
double | measureLine (const QVector< QgsPointXY > &points) const |
| Measures the length of a line with multiple segments. More...
|
|
double | measureLineProjected (const QgsPointXY &p1, double distance=1, double azimuth=M_PI_2, QgsPointXY *projectedPoint=nullptr) const |
| Calculates the distance from one point with distance in meters and azimuth (direction) When the sourceCrs() is geographic, computeSpheroidProject() will be called otherwise QgsPoint.project() will be called after QgsUnitTypes::fromUnitToUnitFactor() has been applied to the distance. More...
|
|
double | measurePerimeter (const QgsGeometry &geometry) const |
| Measures the perimeter of a polygon geometry. More...
|
|
double | measurePolygon (const QVector< QgsPointXY > &points) const |
| Measures the area of the polygon described by a set of points. More...
|
|
QgsDistanceArea & | operator= (const QgsDistanceArea &other) |
|
bool | setEllipsoid (const QString &ellipsoid) |
| Sets the ellipsoid by its acronym. More...
|
|
bool | setEllipsoid (double semiMajor, double semiMinor) |
| Sets ellipsoid by supplied radii. More...
|
|
void | setSourceCrs (const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) |
| Sets source spatial reference system crs. More...
|
|
QgsCoordinateReferenceSystem | sourceCrs () const |
| Returns the source spatial reference system. More...
|
|
QgsGeometry | splitGeometryAtAntimeridian (const QgsGeometry &geometry) const |
| Splits a (Multi)LineString geometry at the antimeridian (longitude +/- 180 degrees). More...
|
|
bool | willUseEllipsoid () const |
| Returns whether calculations will use the ellipsoid. More...
|
|