VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtWktHeaderParser.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2011 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtWktHeaderParser.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvTerrain/vrvTerrain.h>
16 #include <vrvCore/DtHeaderParser.h>
17 
18 class OGRSpatialReference;
19 
20 namespace makVrv
21 {
26  {
27 
28  public:
29 
31  DtWktHeaderParser(const std::string& filePath);
32 
34  virtual ~DtWktHeaderParser();
35 
38  virtual bool isValid();
39 
40  protected:
41 
44  virtual bool getWktString(std::string& wktString);
45 
48  virtual bool getOrigin(const std::string& originLabel, double& val);
49 
52  virtual bool parseWktString(
53  const std::string& wktString, double xOrigin, double yOrigin);
54 
55  virtual bool parseGeocentric(
56  const OGRSpatialReference& spatialRef, double xOrigin, double yOrigin);
57 
58  virtual bool parseLambert(
59  const OGRSpatialReference& spatialRef, double xOrigin, double yOrigin);
60 
61  virtual bool parseUtm(
62  const OGRSpatialReference& spatialRef, double xOrigin, double yOrigin);
63 
64  virtual bool parseFlat(
65  const OGRSpatialReference& spatialRef, double xOrigin, double yOrigin);
66 
69  virtual bool convertCoordinates(
70  const OGRSpatialReference& spatialRef,
71  double x, double y, double& convX, double& convY, bool inDegrees);
72 
75  virtual bool usingDegrees(const OGRSpatialReference& spatialRef);
76  };
77 
81  {
82  public:
83 
86 
88  virtual ~DtWktHeaderParserCreator();
89 
91  virtual DtHeaderParser* create(DtDe& de, const std::string& filePath) const;
92 
93  };
94 }
95 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)