1
#ifndef _GRATICULECREATOR_H_
2
#define _GRATICULECREATOR_H_
11
class GraticuleCreator
14
enum ShapeType { POINT, LINE, POLYGON };
15
GraticuleCreator(QString theOutputFileName, ShapeType theType);
17
void generatePointGraticule(
18
double theXIntervalDouble,
19
double theYIntervalDouble,
20
double theXOriginDouble,
21
double theYOriginDouble,
22
double theXEndPointDouble,
23
double theYEndPointDouble);
24
void generateLineGraticule(
25
double theXIntervalDouble,
26
double theYIntervalDouble,
27
double theXOriginDouble,
28
double theYOriginDouble,
29
double theXEndPointDouble,
30
double theYEndPointDouble);
31
void generatePolygonGraticule(
32
double theXIntervalDouble,
33
double theYIntervalDouble,
34
double theXOriginDouble,
35
double theYOriginDouble,
36
double theXEndPointDouble,
37
double theYEndPointDouble);
38
void generatePoints (QString theInputFileName );
42
SHPHandle mShapeHandle;
43
void createDbf (QString theDbfName ) ;
44
void createShapeFile(QString theFileNamei, ShapeType theType );
45
void writeDbfRecord ( int theRecordIdInt, QString theLabel) ;
46
void writePoint(int theRecordInt, double theXDouble, double y );
47
//! Writes a WGS 84 .prj file for the generated grid
48
void writeProjectionFile(QString theFileName);
51
int theCoordinateCountInt,
52
double * theXArrayDouble,
53
double * theYArrayDouble );
56
int theCoordinateCountInt,
57
double * theXArrayDouble,
58
double * theYArrayDouble );
61
int theCoordinateCountInt,
62
double * theXArrayDouble,
63
double * theYArrayDouble );