Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ var ParameterSchema openapi3.Schema = openapi3.Schema{
// Bbox for extent
type Bbox struct {
Crs string `json:"crs"`
Extent []float64 `json:"bbox"`
Extent [][]float64 `json:"bbox"`
}

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

Expand Down
2 changes: 1 addition & 1 deletion internal/service/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ func writeJSON(w http.ResponseWriter, contype string, content interface{}) *appE
log.Printf("JSON encoding error: %v", err.Error())
return appErrorInternal(err, api.ErrMsgEncoding)
}
//fmt.Println(string(encodedContent))
// fmt.Println(string(encodedContent))
writeResponse(w, contype, encodedContent)
return nil
}
Expand Down