nasa-gibs / worldview

Interactive interface for browsing global, full-resolution satellite imagery
https://worldview.earthdata.nasa.gov/
Other
699 stars 186 forks source link

Sort out "best" and "std" vector layer deployment #2909

Closed mcechini closed 4 years ago

mcechini commented 4 years ago

As is common with GIBS, we will want to configure "best" and "std" endpoints to a vector layer in GIBS.

The worldview layer configurations I'm using are below. Note that they have different layer identifiers, to match the WMTS layer identifier. The vectorStyle:id is also different and that should match (as I understand it) the filename of the vectorstyle JSON document that is referenced in the capabilities file and downloaded during build. The palette:id is the same because they both use the same colormap (this isn't downloaded from GIBS).

I have gone through innumerable iterations and I can't figure out how to get both layers to show up in my deployment. So, I'm phoning a friend... The following style docs are the ones I've been using. Note that tiles that come back in a WMTS request (for both STD and Best) will have an internal tile identifier of GRanD_Dams_v1.01_STD.

{
    "layers": {
        "GRanD_Dams": {
            "id":       "GRanD_Dams",
            "title":    "Dams (Global Reservoir and Dam Database)",
            "subtitle": "Best Available",
            "group":    "overlays",
            "tags": "vectors",
            "type": "vector",
            "vectorStyle": {
                "id": "GRanD_Dams"
            },
            "wrapX": true,
            "palette": {
                "id": "GRanD_Dams",
                "immutable": true,
                "styleProperty": "MAIN_USE",
                "unclassified": "Not Classified"
            }
        }
    }
}

and

{
    "layers": {
        "GRanD_Dams_v1.01_STD": {
            "id":       "GRanD_Dams_v1.01_STD",
            "title":    "Dams (Global Reservoir and Dam Database)",
            "subtitle": "v1.01, Standard",
            "group":    "overlays",
            "tags": "vectors",
            "type": "vector",
            "vectorStyle": {
                "id": "GRanD_Dams_v1.01_STD"
            },
            "wrapX": true,
            "palette": {
                "id": "GRanD_Dams",
                "immutable": true,
                "styleProperty": "MAIN_USE",
                "unclassified": "Not Classified"
            }
        }
    }
}

Help please

mcechini commented 4 years ago

I think we're all done here. Thanks!