Sections

Writing the File

When GIS data is written, a separate service with an interface is called. This allows for maximum flexibility in changing/modifying libraries that read files, data streams, etc. in various formats such as GPX, KML, etc. The core writing function will actually be file agnostic, writing out by whatever format the file was first read in for the session. This can be changed during write & changed in-session.

Pre-Processing

Files are written with plain old JSON. As such, the app first needs to extract the GeoJSON. Next, the GeoJSON must be converted to the destination JSON format before write.

The following illustrates how the application saves the Track back to a file, such as GPX.