20 #ifndef GPX2SHP_H_INCLUDED 21 #define GPX2SHP_H_INCLUDED 23 #define PROG gpx2navit_txt 24 #define FILENAMELENGTH 255 25 #define COMMENTLENGTH 255 30 #define DATABUFSIZE 16 31 #define failToWriteAttr(S, T) failToWriteAttrRep((S), (T),__FILE__, __LINE__ ) 252 double getDistance(
double _x,
double _y,
double x,
double y);
double maxlon
Definition: gpx2navit_txt.h:124
int sym
Definition: gpx2navit_txt.h:75
int sat
Definition: gpx2navit_txt.h:139
int length
Definition: garmin_img.c:67
double minlat
Definition: gpx2navit_txt.h:123
double checkLengthUnit(char *unit)
Definition: utils.c:59
int trkcount
Definition: gpx2navit_txt.h:157
double getSpeed(double length, double ti, double to_meter, int to_sec)
Definition: utils.c:131
int failed
Definition: gpx2navit_txt.h:233
double trklength
Definition: gpx2navit_txt.h:158
char * bufptr
Definition: gpx2navit_txt.h:232
#define NAMELENGTH
Definition: gpx2navit_txt.h:26
int interval
Definition: gpx2navit_txt.h:84
char * databuf
Definition: gpx2navit_txt.h:231
void wipePathAttr(pathattr *pattr)
Definition: misc.c:100
#define TIMELENGTH
Definition: gpx2navit_txt.h:27
double * point
Definition: gpx2navit_txt.h:109
Definition: gpx2navit_txt.h:51
pathattr * pattr
Definition: gpx2navit_txt.h:242
GEOD_EXTERN double to_meter
Definition: geodesic.h:61
int name
Definition: gpx2navit_txt.h:64
int nospeedcheck
Definition: gpx2navit_txt.h:223
void failToWriteAttrRep(int iShape, int col, char *file, int line)
Definition: misc.c:40
double getDistance(double _x, double _y, double x, double y)
Definition: utils.c:156
g2scolumns * createCols(void)
Definition: misc.c:198
XML_Parser parser
Definition: gpx2navit_txt.h:235
parsedata * createParsedata(XML_Parser parser, g2sprop *prop)
Definition: misc.c:310
int depth
Definition: gpx2navit_txt.h:230
int needsStats
Definition: gpx2navit_txt.h:204
int size
Definition: garmin_img.c:124
int gpxline
Definition: gpx2navit_txt.h:87
#define TYPELENGTH
Definition: gpx2navit_txt.h:28
#define FILENAMELENGTH
Definition: gpx2navit_txt.h:24
double time2sec
Definition: gpx2navit_txt.h:215
int ele
Definition: gpx2navit_txt.h:72
int src
Definition: gpx2navit_txt.h:67
int trkpoints
Definition: gpx2navit_txt.h:156
double getTimeInterval(char *_t, char *t)
Definition: utils.c:105
double magvar
Definition: gpx2navit_txt.h:135
double minlon
Definition: gpx2navit_txt.h:122
int isEdge
Definition: gpx2navit_txt.h:201
int speed
Definition: gpx2navit_txt.h:85
int wptpoints
Definition: gpx2navit_txt.h:162
Definition: gpx2navit_txt.h:60
void setPath(parsedata *pdata)
Definition: setpath.c:218
void checkEllpsUnit(char *unit)
Definition: utils.c:35
int number
Definition: gpx2navit_txt.h:133
int rtepoints
Definition: gpx2navit_txt.h:159
int rteunconverted
Definition: gpx2navit_txt.h:164
double geoidheight
Definition: gpx2navit_txt.h:136
char * timeUnit
Definition: gpx2navit_txt.h:214
#define COMMENTLENGTH
Definition: gpx2navit_txt.h:25
int minpoints
Definition: gpx2navit_txt.h:205
int mintime
Definition: gpx2navit_txt.h:207
parent * current
Definition: gpx2navit_txt.h:237
Definition: gpx2navit_txt.h:229
char * output
Definition: gpx2navit_txt.h:210
g2sstats * stats
Definition: gpx2navit_txt.h:221
Definition: gpx2navit_txt.h:93
int isPoint
Definition: gpx2navit_txt.h:202
int number
Definition: gpx2navit_txt.h:99
double pdop
Definition: gpx2navit_txt.h:142
int desc
Definition: gpx2navit_txt.h:66
char * ellipsoid
Definition: gpx2navit_txt.h:211
int fix
Definition: gpx2navit_txt.h:76
void initPathAttr(pathattr *pattr, g2sattr *attr)
Definition: setpath.c:37
void setPathData(pathattr *parrt, g2sattr *attr)
Definition: setpath.c:129
double hdop
Definition: gpx2navit_txt.h:140
pathattr * createPathAttr(void)
Definition: misc.c:118
int checkTimeUnit(char *unit)
Definition: utils.c:87
double speed
Definition: gpx2navit_txt.h:103
double ageofdgpsdata
Definition: gpx2navit_txt.h:143
int count
Definition: gpx2navit_txt.h:110
int sat
Definition: gpx2navit_txt.h:77
int time
Definition: gpx2navit_txt.h:70
double interval
Definition: gpx2navit_txt.h:102
double rtelength
Definition: gpx2navit_txt.h:161
double speed2meter
Definition: gpx2navit_txt.h:218
void closeProp(g2sprop *prop)
Definition: misc.c:260
char * speedTimeUnit
Definition: gpx2navit_txt.h:219
int points
Definition: gpx2navit_txt.h:86
struct g2scolumns g2scolumns
int vdop
Definition: gpx2navit_txt.h:79
double maxlat
Definition: gpx2navit_txt.h:125
int parseWpt
Definition: gpx2navit_txt.h:197
int geoidheight
Definition: gpx2navit_txt.h:74
char * lengthUnit
Definition: gpx2navit_txt.h:212
void setColsDefault(g2scolumns *cols)
Definition: misc.c:168
double ele
Definition: gpx2navit_txt.h:134
void startElementControl(parsedata *pdata, const char *element, const char **attr)
Definition: elementControl.c:30
char * sourcefile
Definition: gpx2navit_txt.h:209
void setMetadata(parsedata *pdata)
Definition: setmeta.c:25
Definition: gpx2navit_txt.h:196
int length
Definition: gpx2navit_txt.h:83
int is3d
Definition: gpx2navit_txt.h:200
void setWpt(parsedata *pdata)
Definition: setwpt.c:27
int pdop
Definition: gpx2navit_txt.h:80
char * speedLengthUnit
Definition: gpx2navit_txt.h:216
double lat
Definition: gpx2navit_txt.h:121
g2sprop * createProp(void)
Definition: misc.c:218
int failedid
Definition: gpx2navit_txt.h:234
g2sattr * attr
Definition: gpx2navit_txt.h:241
FILE * fp
Definition: gpx2navit_txt.h:238
void parseMain(g2sprop *pr)
Definition: parser.c:110
g2sprop * prop
Definition: gpx2navit_txt.h:243
int speed2sec
Definition: gpx2navit_txt.h:220
void endElementControl(parsedata *pdata, const char *element)
Definition: elementControl.c:96
int isFast
Definition: gpx2navit_txt.h:203
Definition: gpx2navit_txt.h:116
void closeParsedata(parsedata *pdata)
Definition: misc.c:342
int hdop
Definition: gpx2navit_txt.h:78
char type[3]
Definition: garmin_img.c:123
int parseRte
Definition: gpx2navit_txt.h:199
double lon
Definition: gpx2navit_txt.h:120
int verbose
Definition: gpx2navit_txt.h:208
parent * parent
Definition: gpx2navit_txt.h:236
struct parsedata parsedata
double length2meter
Definition: gpx2navit_txt.h:213
int dgpsid
Definition: gpx2navit_txt.h:144
void wipeAttr(g2sattr *attr)
Definition: misc.c:128
void showStats(g2sprop *prop)
Definition: misc.c:48
double length
Definition: gpx2navit_txt.h:101
struct parent * parentptr
Definition: gpx2navit_txt.h:53
int parseTrk
Definition: gpx2navit_txt.h:198
int year
Definition: gpx2navit_txt.h:148
g2scolumns * cols
Definition: gpx2navit_txt.h:222
int cmt
Definition: gpx2navit_txt.h:65
int rtecount
Definition: gpx2navit_txt.h:160
int minlength
Definition: gpx2navit_txt.h:206
double vdop
Definition: gpx2navit_txt.h:141
int dgpsid
Definition: gpx2navit_txt.h:82
g2sattr * createAttr(void)
Definition: misc.c:208
int ageofdgpsdata
Definition: gpx2navit_txt.h:81
int type
Definition: gpx2navit_txt.h:69
int link
Definition: gpx2navit_txt.h:68
char * name
Definition: gpx2navit_txt.h:52
Definition: gpx2navit_txt.h:155
int number
Definition: gpx2navit_txt.h:71
void * myMallocRep(size_t size, const char *fileName, int line)
int magvar
Definition: gpx2navit_txt.h:73
void setPathInterval(parsedata *pdata)
Definition: setpath.c:95
int trkunconverted
Definition: gpx2navit_txt.h:163