Skip to content

Commit

Permalink
xmin... to left... in response from GetExtent
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Nov 21, 2023
1 parent 05d83a5 commit 921c6b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions datastore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
```
Expand Down
8 changes: 4 additions & 4 deletions datastore/protobuf/datastore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions datastore/storagebackend/postgresql/getextents.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 921c6b6

Please sign in to comment.