VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvUtil
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
{
17
class
DT_DLL_VRVUTIL
DtMgrsUtil
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
}
DT_DLL_VRVUTIL
#define DT_DLL_VRVUTIL
Definition:
vrvUtil.h:34
vrvUtil.h
Contains DLL export macros.
makVrv::DtMgrsUtil
Contains functions to help process MGRS coordinates.
Definition:
DtMgrsUtil.h:17
Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)