VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMgrsUtil.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ********************************************************************/
5 
9 
10 #pragma once
11 #include <vrvUtil/vrvUtil.h>
12 
13 namespace makVrv
14 {
18  {
19  public:
20 
22  DtMgrsUtil() = default;
23 
25  ~DtMgrsUtil() = default;
26 
28  DtMgrsUtil(const DtMgrsUtil& orig) = default;
29 
31  DtMgrsUtil& operator=(const DtMgrsUtil& orig) = default;
32 
33  // Takes in an MGRS coordinate and fills in outLat, outLon with the
34  // corresponding latitude and longitude
35  // If positionAtCenter is true, partial coordinates (ex. easting="43") are converted
36  // to complete in the center of the grid (easting="43" -> "43555")
37  // If positionAtCenter is false, "43" completes as "43000" for the bottom left corner
38  // returns true if conversion was successful, false if not
39  static bool convertToLatLon(const std::string& mgrsCoord, bool positionAtCenter,
40  double& outLat, double& outLon);
41  };
42 }
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
Contains DLL export macros.
Contains functions to help process MGRS coordinates.
Definition: DtMgrsUtil.h:17

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)