CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
CartoTypeCore::MapMetaData Class Reference

#include <cartotype_map_metadata.h>

Public Member Functions

 MapMetaData (InputStream &aInput)
 
void Write (OutputStream &aOutput) const
 

Public Attributes

DataVersion FileVersion
 
DataVersion CartoTypeVersion
 
uint32_t CartoTypeBuild = 0
 
std::string DataSetName
 
std::string Copyright
 
std::string ProjectionName
 
std::string ProjectionParameters
 
std::vector< std::string > Layers
 
CartoTypeCore::PointFormat PointFormat = CartoTypeCore::PointFormat::Unknown
 
Rect ExtentInMapCoords
 
RectFP ExtentInDegrees
 
uint16_t RouteTableType = MapTableType::KNoTable
 
bool RouteDataHasGradients = false
 
bool LargeFile = false
 
bool DrivingSideKnown = false
 
bool DriveOnLeft = false
 

Static Public Attributes

static constexpr uint32_t KSerializationVersion = 0
 

Detailed Description

Metadata describing a CTM1 map file.

Constructor & Destructor Documentation

◆ MapMetaData()

CartoTypeCore::MapMetaData::MapMetaData ( InputStream aInput)
explicit

Constructs a MapMetaData object by loading it from serialized form.

Member Function Documentation

◆ Write()

void CartoTypeCore::MapMetaData::Write ( OutputStream aOutput) const

Serializes this object.

Member Data Documentation

◆ CartoTypeBuild

uint32_t CartoTypeCore::MapMetaData::CartoTypeBuild = 0

The build (version control revision number) used to build the makemap tool which created the CTM1 file.

◆ CartoTypeVersion

DataVersion CartoTypeCore::MapMetaData::CartoTypeVersion

The version of CartoType used to build the makemap tool which created the CTM1 file.

◆ Copyright

std::string CartoTypeCore::MapMetaData::Copyright

The copyright notice applying to the map data.

◆ DataSetName

std::string CartoTypeCore::MapMetaData::DataSetName

The name of the map data set.

◆ DriveOnLeft

bool CartoTypeCore::MapMetaData::DriveOnLeft = false

True if the driving side is known and the rule is to drive on the left.

◆ DrivingSideKnown

bool CartoTypeCore::MapMetaData::DrivingSideKnown = false

True if the driving side (rule of the road) is known.

◆ ExtentInDegrees

RectFP CartoTypeCore::MapMetaData::ExtentInDegrees

The axis-aligned bounds of the map, in degrees of longitude and latitude.

◆ ExtentInMapCoords

Rect CartoTypeCore::MapMetaData::ExtentInMapCoords

The axis-aligned bounds of the map, in map coordinates.

◆ FileVersion

DataVersion CartoTypeCore::MapMetaData::FileVersion

The CTM1 format version.

◆ KSerializationVersion

constexpr uint32_t CartoTypeCore::MapMetaData::KSerializationVersion = 0
staticconstexpr

The version of the format in which this class is serialized.

◆ LargeFile

bool CartoTypeCore::MapMetaData::LargeFile = false

True if file positions in the data file take up 5 bytes rather than 4.

◆ Layers

std::vector<std::string> CartoTypeCore::MapMetaData::Layers

The layers.

◆ PointFormat

CartoTypeCore::PointFormat CartoTypeCore::MapMetaData::PointFormat = CartoTypeCore::PointFormat::Unknown

The point format for map coordinates: if valid, either Meter or Meter32nds.

◆ ProjectionName

std::string CartoTypeCore::MapMetaData::ProjectionName

The name of the map projection.

◆ ProjectionParameters

std::string CartoTypeCore::MapMetaData::ProjectionParameters

The Proj4 parameters for the map projection.

◆ RouteDataHasGradients

bool CartoTypeCore::MapMetaData::RouteDataHasGradients = false

True if the route data contains gradients.

◆ RouteTableType

uint16_t CartoTypeCore::MapMetaData::RouteTableType = MapTableType::KNoTable

The route table type: one of the constants defined in MapTableType.


The documentation for this class was generated from the following files: