Skip to content

Commit

Permalink
Add comment why we need HANA specific distance unit encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanuhrig committed Jan 8, 2021
1 parent 55e146f commit d101482
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/hana/qgshanautils.cpp
Expand Up @@ -148,6 +148,10 @@ QString QgsHanaUtils::toConstant( const QVariant &value, QVariant::Type type )

QString QgsHanaUtils::toString( QgsUnitTypes::DistanceUnit unit )
{
// We need to translate the distance unit to the name used in HANA's
// SYS.ST_UNITS_OF_MEASURE view. These names are different from the names
// returned by QgsUnitTypes::encodeUnit(). Hence, we need our own translation
// method.
switch ( unit )
{
case QgsUnitTypes::DistanceMeters:
Expand Down

0 comments on commit d101482

Please sign in to comment.