Skip to content

Commit 7a7b3fc

Browse files
authored
Update the Collection extent to be a 2d array to match spec (#175)
1 parent 5078529 commit 7a7b3fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/api/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ var ParameterSchema openapi3.Schema = openapi3.Schema{
195195
// Bbox for extent
196196
type Bbox struct {
197197
Crs string `json:"crs"`
198-
Extent []float64 `json:"bbox"`
198+
Extent [][]float64 `json:"bbox"`
199199
}
200200

201201
// Extent OAPIF Extent structure (partial)
@@ -490,7 +490,7 @@ func toBbox(cc *data.Table) *Bbox {
490490
crs := "http://www.opengis.net/def/crs/EPSG/0/4326"
491491
return &Bbox{
492492
Crs: crs,
493-
Extent: []float64{cc.Extent.Minx, cc.Extent.Miny, cc.Extent.Maxx, cc.Extent.Maxy},
493+
Extent: [][]float64{{cc.Extent.Minx, cc.Extent.Miny, cc.Extent.Maxx, cc.Extent.Maxy}},
494494
}
495495
}
496496

0 commit comments

Comments
 (0)