Geo General
1
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Pages
src
libgeogeneral
api
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
;
21
int
vectorNumLayers
;
22
OGRLayer *
vectorLayer
;
23
int
layerNumFeatures
;
24
OGRFeature *
layerFeature
;
25
OGRFeatureDefn *
featureDef
;
26
OGRGeometry *
featureGeometry
;
27
int
featureNumber
;
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
81
struct
GeoVectorGist
82
{
83
GeoVector
*
source
;
84
int
featureNumber
;
85
std::string
name
;
86
OGRGeometry *
geometry
;
87
88
};
89
90
#endif
/* defined(____GeoVector__) */
Fri Nov 21 2014 12:23:23
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.