You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for ( QList<QgsPoint>::const_iterator i = points.begin(); i != points.end(); ++i )
733
+
{
734
+
p2 = *i;
735
+
if ( mEllipsoidalMode && ( mEllipsoid != GEO_NONE ) )
736
+
{
737
+
total += computeDistanceBearing( p1, p2 );
738
+
}
739
+
else
740
+
{
741
+
total += computeDistanceFlat( p1, p2 );
742
+
}
743
+
744
+
p1 = p2;
745
+
}
746
+
747
+
return total;
748
+
}
749
+
catch ( QgsCsException &cse )
750
+
{
751
+
Q_UNUSED( cse );
752
+
QgsMessageLog::logMessage( QObject::tr( "Caught a coordinate system exception while trying to transform a point. Unable to calculate line length." ) );
0 commit comments