Skip to content

Commit

Permalink
Adds DEFAULT_M_COORDINATE
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Apr 30, 2021
1 parent e8d02b1 commit 96974d9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgis.cpp
Expand Up @@ -56,6 +56,8 @@ const double Qgis::SCALE_PRECISION = 0.9999999999;

const double Qgis::DEFAULT_Z_COORDINATE = 0.0;

const double Qgis::DEFAULT_M_COORDINATE = 0.0;

const double Qgis::DEFAULT_SNAP_TOLERANCE = 12.0;

const QgsTolerance::UnitType Qgis::DEFAULT_SNAP_UNITS = QgsTolerance::Pixels;
Expand Down
7 changes: 7 additions & 0 deletions src/core/qgis.h
Expand Up @@ -175,6 +175,13 @@ class CORE_EXPORT Qgis
*/
static const double DEFAULT_Z_COORDINATE;

/**
* Default M coordinate value for 2.5d geometry
* This value have to be assigned to the M coordinate for the new 2.5d geometry vertex.
* \since QGIS 3.20
*/
static const double DEFAULT_M_COORDINATE;

/**
* UI scaling factor. This should be applied to all widget sizes obtained from font metrics,
* to account for differences in the default font sizes across different platforms.
Expand Down

0 comments on commit 96974d9

Please sign in to comment.