eoxserver
eoxserver copied to clipboard
Missing propereties in create coverage type command
Hi
How can i set "Significant figures", "Numbits", signed and float properties when i create a coverage type by command line ?
The man said
--field-type identifier description definition unit-of-measure wavelength
to describe properties associated with a coverage-type identifier, and i trie to add more options but it is not recognized.
Thanks
Currently there is no way to do this in the CLI form. I advise to use the import
command instead:
e.g:
coveragetype.json
:
[{
"bands": [
{
"definition": "http://www.opengis.net/def/property/OGC/0/Radiance",
"description": "Red Channel",
"gdal_interpretation": "RedBand",
"identifier": "red",
"name": "red",
"nil_values": [
{
"reason": "http://www.opengis.net/def/nil/OGC/0/unknown",
"value": 0
}
],
"uom": "W.m-2.Sr-1",
"significant_figures": 3,
"numbits": 3,
"allowed_value_ranges": [
[0, 255]
]
},
{
"definition": "http://www.opengis.net/def/property/OGC/0/Radiance",
"description": "Green Channel",
"gdal_interpretation": "GreenBand",
"identifier": "green",
"name": "green",
"nil_values": [
{
"reason": "http://www.opengis.net/def/nil/OGC/0/unknown",
"value": 0
}
],
"uom": "W.m-2.Sr-1",
"significant_figures": 3,
"numbits": 3,
"allowed_value_ranges": [
[0, 255]
]
},
{
"definition": "http://www.opengis.net/def/property/OGC/0/Radiance",
"description": "Blue Channel",
"gdal_interpretation": "BlueBand",
"identifier": "blue",
"name": "blue",
"nil_values": [
{
"reason": "http://www.opengis.net/def/nil/OGC/0/unknown",
"value": 0
}
],
"uom": "W.m-2.Sr-1",
"significant_figures": 3,
"numbits": 3,
"allowed_value_ranges": [
[0, 255]
]
}
],
"data_type": "Byte",
"name": "RGB"
}]
Now do:
python manage.py coveragetype import coveragetype.json
Thanks for your quick response