Negative azimuth #6187
AntoElCrackito
announced in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I've worked with "Stakeout" precise view (https://docs.qfield.org/fr/how-to/navigation/#stakeout-precise-view) and I noticed that the bearing was displaying a negative azimuth which I founded unusual. Could it be possible to display a full azimuth whith 360° scale ? Or maybe add an option to choose between a negative or a full azimuth ?
I tried to understand the code located at src/core/utils/positioningutils.cpp but it was a bit complicated for me to to figure out where the code interprets a non-360° bearing :
`double PositioningUtils::bearingTrueNorth( const QgsPoint &position, const QgsCoordinateReferenceSystem &crs )
{
const QgsCoordinateTransformContext transformContext = QgsProject::instance()->transformContext();
double bearing = 0.0;
try
{
bearing = QgsBearingUtils::bearingTrueNorth( crs, transformContext, position );
}
catch ( QgsException &e )
{
Q_UNUSED( e )
QgsDebugMsgLevel( QStringLiteral( "Caught exception %1" ).arg( e.what() ), 2 );
}
return bearing;
}`
Thanks !
Have a great day !
Beta Was this translation helpful? Give feedback.
All reactions