A method for storing GPS data

The present invention provides a method for storing GPS data, including the following steps: an initializing step, initializing a GPS data file, determining whether an index exists when receiving a write request, if not, skipping to an index upper limit determining step, if so, skipping to the last...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: HUANG QIXIONG
Format: Patent
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The present invention provides a method for storing GPS data, including the following steps: an initializing step, initializing a GPS data file, determining whether an index exists when receiving a write request, if not, skipping to an index upper limit determining step, if so, skipping to the last data block according to the index, and entering a data block determining step; the index upper limit determining step, determining whether the index upper limit is reached, if so, returning write failure information, if not, skipping to a newly building data block step; the newly building data block step, newly building a data block and writing the data in to an empty space, newly building and updating the index, and returning write success information; and, the data block determining step, determining whether the current data block is full, if not, directly writing data to the empty space, if so, newly building a data block and updating the index, and writing data to the newly built data block and updating the index of the previous data block. The present invention can greatly increase the GPS data peak concurrent write performance, and enormously increase usage rate of the disk space.