Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing propereties in create coverage type command #435

Open
Mikiya83 opened this issue Jan 16, 2020 · 2 comments
Open

Missing propereties in create coverage type command #435

Mikiya83 opened this issue Jan 16, 2020 · 2 comments

Comments

@Mikiya83
Copy link

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

@constantinius
Copy link
Member

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

@Mikiya83
Copy link
Author

Thanks for your quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants