Browse Source

Merge pull request #6026 from DonLakeFlyer/SurveyGrid

Use a much larger fudge factor to increase initial transect length
QGC4.4
Don Gagne 7 years ago committed by GitHub
parent
commit
10215bbda0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/MissionManager/SurveyMissionItem.cc

2
src/MissionManager/SurveyMissionItem.cc

@ -940,7 +940,7 @@ int SurveyMissionItem::_gridGenerator(const QList<QPointF>& polygonPoints, QLis @@ -940,7 +940,7 @@ int SurveyMissionItem::_gridGenerator(const QList<QPointF>& polygonPoints, QLis
// Transects are generated to be as long as the largest width/height of the bounding rect plus some fudge factor.
// This way they will always be guaranteed to intersect with a polygon edge no matter what angle they are rotated to.
// They are initially generated with the transects flowing from west to east and then points within the transect north to south.
double maxWidth = qMax(boundingRect.width(), boundingRect.height()) + 100.0;
double maxWidth = qMax(boundingRect.width(), boundingRect.height()) + 2000.0;
double halfWidth = maxWidth / 2.0;
double transectX = boundingCenter.x() - halfWidth;
double transectXMax = transectX + maxWidth;

Loading…
Cancel
Save