Skip to content
Permalink
Browse files

Add comment why we need HANA specific distance unit encoding

  • Loading branch information
stefanuhrig committed Jan 8, 2021
1 parent 55e146f commit d101482705b67c4613243bc92c1e1dba78555c24
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/providers/hana/qgshanautils.cpp
@@ -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:

0 comments on commit d101482

Please sign in to comment.
You can’t perform that action at this time.