From 69d73b4f6f007c1b501a8057b35247a0a53bc526 Mon Sep 17 00:00:00 2001 From: Riccardo Berto Date: Wed, 24 Feb 2021 16:38:49 +0100 Subject: [PATCH] PostGIS --- init.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/init.sql b/init.sql index b681ec4..8bde23c 100644 --- a/init.sql +++ b/init.sql @@ -14,8 +14,7 @@ create table if not exists training( create table if not exists training_data( training_id uuid not null, t timestamp with time zone not null, - lat float not null, - lon float not null, + geog GEOGRAPHY(Point), -- perf issues but don't care enough for geometry->projection->geography conversions speed float not null, elevation float not null, constraint fk_training_id foreign key(training_id) references training(id) on delete cascade