mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@3691 c8812cc2-4d05-0410-92ff-de0c093fc19c
46 lines
1.8 KiB
C++
46 lines
1.8 KiB
C++
#ifndef _GRATICULECREATOR_H_
|
|
#define _GRATICULECREATOR_H_
|
|
|
|
#include "shapefile.h"
|
|
#include "utils.h"
|
|
|
|
//qt includes
|
|
#include <qstring.h>
|
|
#include <qfile.h>
|
|
|
|
class GraticuleCreator
|
|
{
|
|
public:
|
|
GraticuleCreator(QString theOutputFileName,
|
|
double theXIntervalDouble,
|
|
double theYIntervalDouble,
|
|
double theXOriginDouble,
|
|
double theYOriginDouble,
|
|
double theXEndPointDouble,
|
|
double theYEndPointDouble);
|
|
~GraticuleCreator() {};
|
|
DBFHandle GraticuleCreator::createDbf (QString theDbfName ) ;
|
|
SHPHandle GraticuleCreator::createShapeFile(QString theFileName );
|
|
void writeDbfRecord (DBFHandle theDbfHandle, int theRecordIdInt, QString theLabel) ;
|
|
void writePoint(SHPHandle theShapeHandle, int theRecordInt, double theXDouble, double y );
|
|
//! Writes a WGS 84 .prj file for the generated grid
|
|
void writeProjectionFile(QString theFileName);
|
|
static void writeLine(SHPHandle theShapeHandle,
|
|
int theRecordInt,
|
|
int theCoordinateCountInt,
|
|
double * theXArrayDouble,
|
|
double * theYArrayDouble );
|
|
void generateGraticule(DBFHandle theDbfHandle,
|
|
SHPHandle theShapeHandle,
|
|
double theXIntervalDouble,
|
|
double theYIntervalDouble,
|
|
double theXOriginDouble,
|
|
double theYOriginDouble,
|
|
double theXEndPointDouble,
|
|
double theYEndPointDouble);
|
|
void generatePoints (QString theInputFileName, DBFHandle theDbfHandle, SHPHandle theShapeHandle);
|
|
|
|
private:
|
|
};
|
|
#endif
|