Get bbox query parameter interactively #1339
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 getbbox
coordinates, end-users can click and drag the mouse over a rectangular area of interest, while pressing the theCtrl
key. A popup appears with thebbox
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 thebbox
query parameter directly in the default CRS. Thebbox
can therefore be used without specifying anybbox-crs
.Contributions and Licensing
(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)