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

Add intersection process and update skin dashboard templates #195

Merged
merged 2 commits into from
Jul 16, 2023
Merged

Conversation

webb-ben
Copy link
Member

@webb-ben webb-ben commented Jul 14, 2023

Add intersection OGC API - process from pygeoapi-plugins in support of #184. The data passed to the pygeoapi/pygeoapi-skin-dashboard/templates/processes/process.html jinja template has changed so I had to update the skin-dashboard template (cc: @dblodgett-usgs potentially the same issue as https://labs.waterdata.usgs.gov/api/nldi/pygeoapi/processes/nldi-flowtrace).

Also made additional updates to html templates. The differences can be seen at the branch of this PR and master. A mostly-exhaustive list is of changes to the htmls representations are:

  • Modification of _base.html and css to slightly improve the appearance on the navigation on mobile devices.
    image
  • Added more information to the landing page
    image
  • Include all links in collection specific landing pages
    image
  • Load full table in /items (as implemented in Improve default items view geopython/pygeoapi#1148)
    image
  • Fix the OAProc HTML representation and implement OAProc Intersector
    image

webb-ben added 2 commits July 12, 2023 16:38
- Fix /process/process.html
- Improve mobile UI compatibility
- Add marker clustering on /items
- Add table overflow on /items
- Add items to landing page
@webb-ben webb-ben requested a review from ksonda July 14, 2023 19:38
@webb-ben
Copy link
Member Author

More Mobile:
image
image

@webb-ben
Copy link
Member Author

webb-ben commented Jul 14, 2023

Another note:

The intersector plugin json representation advertises a OAProc schema that includes enumeration of all available collections that an API client can use.

{
    ...
    "collection": {
        "title": "Feature Collection",
        "description": "Feature Collection",
        "keywords": [
            "OGC API",
            "collection"
        ],
        "schema": {
            "type": "string",
            "example": "hu02",
            "enum": [
                "hu02",
                "hu04",
                "hu06",
                "hu08",
                "hu10",
                "nat_aq",
                "principal_aq",
                "sec_hydrg_reg",
                "gages",
                "mainstems",
                "states",
                "counties",
                "aiannh",
                "cbsa",
                "ua10",
                "places",
                "pws",
                "dams"
            ]
        },
        "minOccurs": 1,
        "maxOccurs": 1,
        "metadata": null
    }
    ...
}

@ksonda
Copy link
Member

ksonda commented Jul 14, 2023

Neat! So could take like the flow lines geojson response from nldi and get all the census places they run through. That would be a good vignette

@ksonda ksonda merged commit e0e1c2b into master Jul 16, 2023
@webb-ben webb-ben deleted the dev branch July 17, 2023 14:03
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

Successfully merging this pull request may close these issues.

2 participants