QGIS API Documentation 3.99.0-Master (357b655ed83)
Loading...
Searching...
No Matches
QgsMeasureUtils Class Reference

Utilities for handling and formatting measurements. More...

#include <qgsmeasureutils.h>

Static Public Member Functions

static Q_INVOKABLE QString formatAreaForProject (QgsProject *project, double area, Qgis::AreaUnit unit)
 Formats an area measurement (with the specified unit) for use with a project, respecting the project's area unit settings.
static Q_INVOKABLE QString formatDistanceForProject (QgsProject *project, double distance, Qgis::DistanceUnit unit)
 Formats a distance measurement (with the specified unit) for use with a project, respecting the project's distance unit settings.

Detailed Description

Utilities for handling and formatting measurements.

Since
QGIS 4.0

Definition at line 35 of file qgsmeasureutils.h.

Member Function Documentation

◆ formatAreaForProject()

QString QgsMeasureUtils::formatAreaForProject ( QgsProject * project,
double area,
Qgis::AreaUnit unit )
static

Formats an area measurement (with the specified unit) for use with a project, respecting the project's area unit settings.

Definition at line 31 of file qgsmeasureutils.cpp.

◆ formatDistanceForProject()

QString QgsMeasureUtils::formatDistanceForProject ( QgsProject * project,
double distance,
Qgis::DistanceUnit unit )
static

Formats a distance measurement (with the specified unit) for use with a project, respecting the project's distance unit settings.

Definition at line 64 of file qgsmeasureutils.cpp.


The documentation for this class was generated from the following files: