- // Point has an altitude - if it's the first one, use its format
- if (_altitudeFormat == Altitude.Format.NO_FORMAT)
- {
- _altitudeFormat = point.getAltitude().getFormat();
- _minValue = _maxValue = point.getAltitude().getValue();
- }
- // Store the value and maintain max and min values
- double value = point.getAltitude().getValue(_altitudeFormat);
+ // Point has an altitude - store value and maintain max and min values
+ double value = point.getAltitude().getMetricValue() * multFactor;