Skip to content

Commit

Permalink
API-711 add boostIndex to datasets configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
aperdizs committed Sep 5, 2023
1 parent 427db06 commit 7b3a421
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gfw/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ type DatasetConfiguration struct {
Intervals []string `json:"intervals,omitempty"`
NumLayers int `json:"numLayers,omitempty"`
Index string `json:"index,omitempty"`
IndexBoost float64 `json:"indexBoost,omitempty"`
Version int `json:"version,omitempty"`
Translate bool `json:"translate,omitempty"`
Documentation *DatasetDocumentation `json:"documentation,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions gfw/resource_dataset.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ func schemaToDatasetConfiguration(schema map[string]interface{}) api.DatasetConf
Bucket: schema["bucket"].(string),
Folder: schema["folder"].(string),
Index: schema["index"].(string),
IndexBoost: schema["indexBoost"].(float64),
GeometryType: schema["geometry_type"].(string),
PropertyToInclude: schema["property_to_include"].(string),
FilePath: schema["file_path"].(string),
Expand Down Expand Up @@ -794,6 +795,7 @@ func flattenDatasetConfiguration(config api.DatasetConfiguration) interface{} {
a["intervals"] = config.Intervals
a["num_layers"] = config.NumLayers
a["index"] = config.Index
a["indexBoost"] = config.IndexBoost
a["version"] = config.Version
a["translate"] = config.Translate
a["num_bytes"] = config.NumBytes
Expand Down

0 comments on commit 7b3a421

Please sign in to comment.