NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
string_coordinate_conversions.h File Reference

Conversion of geographic coordinates to string. More...

#include <string.h>
#include <string>
#include <vector>
#include <stdio.h>
#include <stdarg.h>
#include <base/inc/platform.h>
#include <base/inc/base_types.h>

Go to the source code of this file.

Functions

static std::string GeoIntToString (SDKUInt32 coord, const std::string &format, char positive, char negative, SDKUInt32 max_value, const SDKUInt32 *dividers, SDKUInt32 divider_count)
 Converts coordinates of a geographic position to a string.
 
std::string LatToString (SDKInt32 lat)
 Converts the latitude of a geographic position to a string.
 
std::string LonToString (SDKInt32 lon)
 Converts the longitude of a geographic position to a string.
 
std::wstring LatToWString (SDKInt32 lat)
 Converts the latitude of a geographic position to a wide string.
 
std::wstring LonToWString (SDKInt32 lon)
 Converts the longitude of a geographic position to a wide string.
 

Variables

static const char * kLatHemispherePostfix ="%02u#%02u.%04u\'\\"
 4 decimals of minutes
 
static const char * kLatHemispherePostfix3 = "%02u#%02u.%03u\'\\"
 3 decimals of minutes
 

Detailed Description

Conversion of geographic coordinates to string.

Copyright (c) 2011 The NAVTOR SDK. All Rights Reserved. Use of this source code is governed by a license that can be

Author
The NAVTOR SDK authors
Date
12/2011
Maintenance:
The NAVTOR SDK authors