D
D
dom1n1k2019-04-08 17:42:18
satellite navigation
dom1n1k, 2019-04-08 17:42:18

What is the best way to store GPS tracks in a database?

A theoretical question to consider.
There are many GPS tracks, each of them has many points. What does a lot mean? Since the question is theoretical, I will not name specific figures, but potentially there can be up to several million here and there. That is, multiplying one by the other, we get a trillion.
What is the best way to organize storage in a database? One friend told me, they say, we are making a table of tracks and a table of points. All points fall into it en masse, and when you need to get a specific track, points are selected by track id and sorted in order. It seems to me that this is not very effective and will work great on small volumes, but with their growth it will fall very quickly.
Store the points of each track as a blob? Even more strange.
Looking towards NoSQL?
Maybe there are standard schemes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2019-04-08
@dom1n1k

PostgreSQL + PostGis. Store as regular coordinates of the desired precision. A selection of any complexity is possible.
Now my coordinate base occupies more than 70GB, the selection of coordinates inside the desired polygon takes about 6ms on a regular hdd.
If desired, you can cram the tracks in the form of a multiline from which it is then easy to pull out individual points
PS the PostgreSQL + PostGis bundle uses OSM, where the unpacked planet base easily exceeds 500GB

A
Andrey Skorzhinsky, 2019-04-09
@AndyKorg

You can use geodata in relational databases. For example in MS SQL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question