Geo General  1
 All Classes Files Functions Variables Pages
GeoVector.h
Go to the documentation of this file.
1 #ifndef ____GeoVector__
2 #define ____GeoVector__
3 
4 #include <iostream>
5 #include <string>
6 #include <vector>
7 #include <memory>
8 #include <stdlib.h>
9 #include "gdal.h"
10 #include "ogrsf_frmts.h"
11 #include "gdal_priv.h"
12 
13 //define GeoVector Class
14 class GeoVector {
15 
16 
17  public:
18  OGRDataSource * vectorDataset;
19  std::string vectorName;
20  OGRSFDriver * vectorDriver;
22  OGRLayer * vectorLayer;
24  OGRFeature * layerFeature;
25  OGRFeatureDefn * featureDef;
26  OGRGeometry * featureGeometry;
28  OGRSpatialReference * projection;
29  std::vector <std::string> attributeNames;
30  std::vector <std::string> attributeValues;
31 
32 
36  GeoVector(std::string n_outputNameVector, GeoVector * templateVector);
37 
41  GeoVector( std::string n_inputNameVector );
42 
43  //destructor
44  ~GeoVector();
45 
49  void getDriver();
50 
54  void setLayer( int layerNumber);
55 
59  void setFeature( int featureNumber );
60 
64  void copyFeature ( GeoVector * templateVector );
65 
69  OGRLayer * queryEngine ( std::string query, GeoVector * templateVector );
70 
74  void getEnvelope( double &minX, double &maxX, double &minY, double &maxY );
75 };
76 
82 {
85  std::string name;
86  OGRGeometry * geometry;
87 
88 };
89 
90 #endif /* defined(____GeoVector__) */

Copyright 2014 Google Inc. All rights reserved.