From 921c6b60be2cf11fc9ebb747730b350c508ca18b Mon Sep 17 00:00:00 2001 From: Jo Asplin Date: Tue, 21 Nov 2023 10:49:00 +0100 Subject: [PATCH] xmin... to left... in response from GetExtent --- datastore/README.md | 8 ++++---- datastore/protobuf/datastore.proto | 8 ++++---- datastore/storagebackend/postgresql/getextents.go | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/datastore/README.md b/datastore/README.md index ee75ab5..6bd1789 100644 --- a/datastore/README.md +++ b/datastore/README.md @@ -250,10 +250,10 @@ $ grpcurl -plaintext -proto protobuf/datastore.proto 127.0.0.1:50050 datastore.D "end": "2022-12-31T23:50:00Z" }, "geoExtent": { - "xMin": -68.2758333, - "yMin": 12.13, - "xMax": 7.1493220605216, - "yMax": 55.399166666667 + "left": -68.2758333, + "bottom": 12.13, + "right": 7.1493220605216, + "top": 55.399166666667 } } ``` diff --git a/datastore/protobuf/datastore.proto b/datastore/protobuf/datastore.proto index 0209d45..19f5ceb 100644 --- a/datastore/protobuf/datastore.proto +++ b/datastore/protobuf/datastore.proto @@ -37,10 +37,10 @@ message Polygon { // horizontal area; three or more points } message BoundingBox { - double xMin = 1; - double yMin = 2; - double xMax = 3; - double yMax = 4; + double left = 1; + double bottom = 2; + double right = 3; + double top = 4; } message TimeInterval { diff --git a/datastore/storagebackend/postgresql/getextents.go b/datastore/storagebackend/postgresql/getextents.go index 843b672..8f4ba3d 100644 --- a/datastore/storagebackend/postgresql/getextents.go +++ b/datastore/storagebackend/postgresql/getextents.go @@ -44,10 +44,10 @@ func getSpatialExtent(db *sql.DB) (*datastore.BoundingBox, error) { } return &datastore.BoundingBox{ - XMin: xmin, - YMin: ymin, - XMax: xmax, - YMax: ymax, + Left: xmin, + Bottom: ymin, + Right: xmax, + Top: ymax, }, nil }