VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
propShapefileImportHandler.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2019 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #pragma once
7 
8 #include <vrvUtil/signalslib.h>
11 #include <vlutil/vlFilename.h>
12 #include <matrix/vlVector.h>
13 
14 #include <map>
15 #include <string>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtUnicode;
21 }
22 
23 namespace makArchives
24 {
25  class DtPropRecord;
26 }
27 
28 class OGRLayer;
29 class DtFilename;
30 class OGRSFDriver;
31 class OGRDataSource;
32 class OGRFeature;
33 
34 namespace makVrf
35 {
39  {
40  public:
43 
46 
47  static DtPropShapefileImportHandler& instance(makVrv::DtDe& de);
48  static void registerInstance(makVrv::DtDe& de, DtPropShapefileImportHandler*);
49 
51  virtual bool importPropsFromShapefile(const std::string&, makVrv::DtUnicode& sError);
52 
53  protected:
54  virtual bool importFeatureLayer(OGRDataSource*, OGRLayer*, const DtFilename& layerName, makVrv::DtUnicode& sError);
55  virtual bool importProp(OGRDataSource*, OGRLayer*, OGRFeature*, makArchives::DtPropRecord&);
56  virtual bool importPropsFromShapefile(OGRSFDriver* poDriver, const std::string& shapefile, makVrv::DtUnicode& sError);
57 
58  virtual bool getFeatureLocation(OGRFeature* feature, DtVector&) const;
59 
60  protected:
62  std::map<std::string, int> myNamesImportedCounts;
63  };
64 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)