eoxserver icon indicating copy to clipboard operation
eoxserver copied to clipboard

Missing propereties in create coverage type command

Open Mikiya83 opened this issue 5 years ago • 2 comments

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

Mikiya83 avatar Jan 16 '20 09:01 Mikiya83

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

constantinius avatar Jan 16 '20 09:01 constantinius

Thanks for your quick response

Mikiya83 avatar Jan 16 '20 09:01 Mikiya83