2004-03-22 23:38:26 +00:00
|
|
|
#ifndef _WAYPOINTTOSHAPE_H_
|
|
|
|
#define _WAYPOINTTOSHAPE_H_
|
|
|
|
|
2004-03-31 20:36:46 +00:00
|
|
|
#include "shapefile.h"
|
2004-03-22 23:38:26 +00:00
|
|
|
#include "utils.h"
|
|
|
|
|
|
|
|
//qt includes
|
|
|
|
#include <qstring.h>
|
|
|
|
#include <qfile.h>
|
|
|
|
|
|
|
|
class WayPointToShape
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
WayPointToShape::WayPointToShape(QString theOutputFileName, QString theInputFileName );
|
|
|
|
~WayPointToShape() {};
|
|
|
|
DBFHandle WayPointToShape::createDbf (QString theDbfName ) ;
|
|
|
|
SHPHandle WayPointToShape::createShapeFile(QString theFileName );
|
|
|
|
void writeDbfRecord (DBFHandle theDbfHandle, int theRecordIdInt, QString theLabel) ;
|
|
|
|
void writePoint(SHPHandle theShapeHandle, int theRecordInt, double theXFloat, double y );
|
|
|
|
void generatePoints (QString theInputFileName, DBFHandle theDbfHandle, SHPHandle theShapeHandle) ;
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
#endif
|