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

Get bbox query parameter interactively #1339

Merged

Conversation

MTachon
Copy link
Contributor

@MTachon MTachon commented Aug 25, 2023

Overview

This PR implements a way for end-users to get interactively the bbox query parameter from a collection's HTML page. In order to get bbox coordinates, end-users can click and drag the mouse over a rectangular area of interest, while pressing the the Ctrl key. A popup appears with the bbox query parameter corresponding to the rectangular area drawn on the map. The popup's text can then be copied and pasted directly in the query URL.

Additional Information

Several provider types may support an additional bbox-crs query parameter that specify which coordinate reference system the bbox's coordinates are in. In the part 2 of the OGC API Features standard, it says that "If the bbox-crs parameter is not specified then the coordinate values of the bbox parameter SHALL be assumed to be in the default CRS specified in OGC API - Feature - Part 1: Core; that is http://www.opengis.net/def/crs/OGC/1.3/CRS84...". It is likely that other OGC API standards will use the same assumption. This implementation allows to get interactively the bbox query parameter directly in the default CRS. The bbox can therefore be used without specifying any bbox-crs.

Contributions and Licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute [feature X|bugfix Y|docs|something else] to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution.
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

@MTachon MTachon changed the title [WIP] Get bbox query parameter interactively Get bbox query parameter interactively Aug 25, 2023
@MTachon MTachon changed the title Get bbox query parameter interactively [WIP] Get bbox query parameter interactively Aug 25, 2023
@MTachon MTachon changed the title [WIP] Get bbox query parameter interactively Get bbox query parameter interactively Aug 28, 2023
@MTachon
Copy link
Contributor Author

MTachon commented Aug 29, 2023

CI issues are not related to PR.

@tomkralidis tomkralidis merged commit aa42cc6 into geopython:master Aug 29, 2023
1 of 2 checks passed
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