VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions

DtWktHeaderParser parses coordinate system info from files supporting the Well Known Text standard. More...

Inheritance diagram for makVrv::DtWktHeaderParser:
Inheritance graph
[legend]

Public Member Functions

 DtWktHeaderParser (const std::string &filePath)
 CTOR.
virtual ~DtWktHeaderParser ()
 DTOR.
virtual bool isValid ()
 Returns true if the file was loaded and produced acceptable coordinate system information and origin information.
- Public Member Functions inherited from makVrv::DtHeaderParser
 DtHeaderParser (const std::string &filePath)
 CTOR.
virtual ~DtHeaderParser ()
 DTOR.
virtual const std::string & terrainCoordinateSystem ()
 Returns the terrain coordinate system parameter for use in creation of a model definition.
virtual const std::string & terrainCoordinateSystemParameters ()
 Returns the terrain Coordinate System Parameters for use in creation of a model definition.
virtual const std::string & filePath ()
 Returns myFilePath.
const TerrainPatchRecordsterrainPatchRecords () const
 TerrainPatchRecords accessor.

Protected Member Functions

virtual bool getWktString (std::string &wktString)
 Returns true if the WKT string was found, the string being placed in wktString.
virtual bool getOrigin (const std::string &originLabel, double &val)
 Returns true if the specified origin value was found, the origin value being placed in val.
virtual bool parseWktString (const std::string &wktString, double xOrigin, double yOrigin)
 Returns true if the WKT string yields an appropriate coordinate system.
virtual bool parseGeocentric (const OGRSpatialReference &spatialRef, double xOrigin, double yOrigin)
virtual bool parseLambert (const OGRSpatialReference &spatialRef, double xOrigin, double yOrigin)
virtual bool parseUtm (const OGRSpatialReference &spatialRef, double xOrigin, double yOrigin)
virtual bool parseFlat (const OGRSpatialReference &spatialRef, double xOrigin, double yOrigin)
virtual bool convertCoordinates (const OGRSpatialReference &spatialRef, double x, double y, double &convX, double &convY, bool inDegrees)
 Converts a point to the latitude and longitude of the corresponding point in the coordinate system.
virtual bool usingDegrees (const OGRSpatialReference &spatialRef)
 Returns true if the coordinate system parameters are specified in degrees instead of radians.

Additional Inherited Members

- Public Types inherited from makVrv::DtHeaderParser
typedef std::list
< makArchives::DtTerrainPatchRecord
TerrainPatchRecords
- Protected Attributes inherited from makVrv::DtHeaderParser
std::string myFilePath
std::string myTerrainCoordinateSystem
std::string myTerrainCoordinateSystemParameters
TerrainPatchRecords myTerrainPatchRecords

Detailed Description

DtWktHeaderParser parses coordinate system info from files supporting the Well Known Text standard.

Constructor & Destructor Documentation

makVrv::DtWktHeaderParser::DtWktHeaderParser ( const std::string &  filePath)

CTOR.

virtual makVrv::DtWktHeaderParser::~DtWktHeaderParser ( )
virtual

DTOR.

Member Function Documentation

virtual bool makVrv::DtWktHeaderParser::isValid ( )
virtual

Returns true if the file was loaded and produced acceptable coordinate system information and origin information.

Implements makVrv::DtHeaderParser.

virtual bool makVrv::DtWktHeaderParser::getWktString ( std::string &  wktString)
protectedvirtual

Returns true if the WKT string was found, the string being placed in wktString.

virtual bool makVrv::DtWktHeaderParser::getOrigin ( const std::string &  originLabel,
double &  val 
)
protectedvirtual

Returns true if the specified origin value was found, the origin value being placed in val.

virtual bool makVrv::DtWktHeaderParser::parseWktString ( const std::string &  wktString,
double  xOrigin,
double  yOrigin 
)
protectedvirtual

Returns true if the WKT string yields an appropriate coordinate system.

virtual bool makVrv::DtWktHeaderParser::parseGeocentric ( const OGRSpatialReference &  spatialRef,
double  xOrigin,
double  yOrigin 
)
protectedvirtual
virtual bool makVrv::DtWktHeaderParser::parseLambert ( const OGRSpatialReference &  spatialRef,
double  xOrigin,
double  yOrigin 
)
protectedvirtual
virtual bool makVrv::DtWktHeaderParser::parseUtm ( const OGRSpatialReference &  spatialRef,
double  xOrigin,
double  yOrigin 
)
protectedvirtual
virtual bool makVrv::DtWktHeaderParser::parseFlat ( const OGRSpatialReference &  spatialRef,
double  xOrigin,
double  yOrigin 
)
protectedvirtual
virtual bool makVrv::DtWktHeaderParser::convertCoordinates ( const OGRSpatialReference &  spatialRef,
double  x,
double  y,
double &  convX,
double &  convY,
bool  inDegrees 
)
protectedvirtual

Converts a point to the latitude and longitude of the corresponding point in the coordinate system.

virtual bool makVrv::DtWktHeaderParser::usingDegrees ( const OGRSpatialReference &  spatialRef)
protectedvirtual

Returns true if the coordinate system parameters are specified in degrees instead of radians.


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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)