~ubuntu-branches/debian/sid/gdal/sid

« back to all changes in this revision

Viewing changes to ogr/ogrsf_frmts/gpx/ogr_gpx.h

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2012-05-07 15:04:42 UTC
  • mfrom: (5.5.16 experimental)
  • Revision ID: package-import@ubuntu.com-20120507150442-2eks97loeh6rq005
Tags: 1.9.0-1
* Ready for sid, starting transition.
* All symfiles updated to latest builds.
* Added dh_numpy call in debian/rules to depend on numpy ABI.
* Policy bumped to 3.9.3, no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/******************************************************************************
2
 
 * $Id: ogr_gpx.h 17549 2009-08-21 11:16:41Z rouault $
 
2
 * $Id: ogr_gpx.h 20996 2010-10-28 18:38:15Z rouault $
3
3
 *
4
4
 * Project:  GPX Translator
5
5
 * Purpose:  Definition of classes for OGR .gpx driver.
67
67
    int                nFeatures;
68
68
    int                eof;
69
69
    int                nNextFID;
70
 
    FILE*              fpGPX; /* Large file API */
 
70
    VSILFILE*          fpGPX; /* Large file API */
71
71
    const char*        pszElementToScan;
72
72
#ifdef HAVE_EXPAT
73
73
    XML_Parser         oParser;
116
116
    int                nWithoutEventCounter;
117
117
    int                nDataHandlerCounter;
118
118
    
 
119
    int                iFirstGPXField;
 
120
    
119
121
  private:
120
 
    void               WriteFeatureAttributes( OGRFeature *poFeature );
 
122
    void               WriteFeatureAttributes( OGRFeature *poFeature, int nIdentLevel = 1 );
121
123
    void               LoadExtensionsSchema();
122
124
#ifdef HAVE_EXPAT
123
125
    void               AddStrToSubElementValue(const char* pszStr);
124
126
#endif
 
127
    int                OGRGPX_WriteXMLExtension(const char* pszTagName,
 
128
                                                const char* pszContent);
125
129
 
126
130
  public:
127
131
                        OGRGPXLayer(const char *pszFilename,
175
179
    int                 nLayers;
176
180
 
177
181
    /*  Export related */
178
 
    FILE                *fpOutput; /* Standard file API */
 
182
    VSILFILE           *fpOutput; /* Large file API */
 
183
    int                 bIsBackSeekable;
 
184
    const char         *pszEOL;
179
185
    int                 nOffsetBounds;
180
186
    double              dfMinLat, dfMinLon, dfMaxLat, dfMaxLon;
181
187
    
196
202
                        OGRGPXDataSource();
197
203
                        ~OGRGPXDataSource();
198
204
 
 
205
    int                nLastRteId;
 
206
    int                nLastTrkId;
 
207
    int                nLastTrkSegId;
 
208
 
199
209
    int                 Open( const char * pszFilename,
200
210
                              int bUpdate );
201
211
    
214
224
 
215
225
    int                 TestCapability( const char * );
216
226
    
217
 
    FILE *              GetOutputFP() { return fpOutput; }
 
227
    VSILFILE *              GetOutputFP() { return fpOutput; }
218
228
    void                SetLastGPXGeomTypeWritten(GPXGeometryType gpxGeomType)
219
229
                            { lastGPXGeomTypeWritten = gpxGeomType; }
220
230
    GPXGeometryType     GetLastGPXGeomTypeWritten() { return lastGPXGeomTypeWritten; }
230
240
    const char*         GetVersion() { return pszVersion; }
231
241
    
232
242
    void                AddCoord(double dfLon, double dfLat);
 
243
    
 
244
    void                PrintLine(const char *fmt, ...) CPL_PRINT_FUNC_FORMAT (2, 3);
233
245
};
234
246
 
235
247
/************************************************************************/