Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raster attributes and raster maptips
- Loading branch information
Showing
4 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "raster_attributes", | ||
"type": "function", | ||
"groups": ["Rasters"], | ||
"description": "Returns a map with the fields names as keys and the raster attribute table values as values from the attribute table entry that matches the given raster value .", | ||
"arguments": [{ | ||
"arg": "layer", | ||
"description": "the name or id of a raster layer" | ||
}, { | ||
"arg": "band", | ||
"description": "the band number to sample the value from and for the associated attribute table lookup." | ||
}, { | ||
"arg": "value", | ||
"description": "raster value" | ||
}], | ||
"examples": [{ | ||
"expression": "raster_attributes('vegetation', 1, raster_value('vegetation', 1, make_point(1,1)))", | ||
"returns": "{'class': 'Vegetated', 'subclass': 'Trees'}" | ||
}], | ||
"tags": ["provider", "point", "raster", "found", "attributes"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters