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

Capabilities: Handle more bbox elements #16

Closed
fgravin opened this issue Dec 21, 2023 · 2 comments · Fixed by #21
Closed

Capabilities: Handle more bbox elements #16

fgravin opened this issue Dec 21, 2023 · 2 comments · Fixed by #21

Comments

@fgravin
Copy link
Member

fgravin commented Dec 21, 2023

It seems that the bounding boxes of the layers are only fetched from the BoundingBox element of the layer in the getCapabilities.
eg.

<BoundingBox CRS="EPSG:2056" minx="2.1e+06" miny="105000" maxx="2.85e+06" maxy="1.4e+06"/>

Additionally, it could exist more elements about the layer extent.

  • EX_GeographicBoundingBox
  • ows:WGS84BoundingBox

Those elements are in EPSG:4326 which simplifies the process afterwards, as it's a standard CRS.

eg.

<ows:WGS84BoundingBox>
  <ows:LowerCorner>5.140242 45.398181</ows:LowerCorner>
  <ows:UpperCorner>11.47757 48.230651</ows:UpperCorner>
</ows:WGS84BoundingBox>

<EX_GeographicBoundingBox>
  <westBoundLongitude>0.659866</westBoundLongitude>
  <eastBoundLongitude>10.8359</eastBoundLongitude>
  <southBoundLatitude>36.982</southBoundLatitude>
  <northBoundLatitude>48.7511</northBoundLatitude>
</EX_GeographicBoundingBox>
@jahow
Copy link
Member

jahow commented Jan 4, 2024

is that for WMS or WFS? Edit: looks like it's for WMS. The WMS spec does not allow WGS84BoundingBox elements so I'm a bit surprised, does that really happen? do you have an example?

As for EX_GeographicBoundingBox, indeed it's missing. I'll add support for it.

@fgravin
Copy link
Member Author

fgravin commented Jan 5, 2024

is that for WMS or WFS

The exemple above come from WMS and WMTS.

@jahow jahow closed this as completed in #21 Jan 5, 2024
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 a pull request may close this issue.

2 participants