camptocamp / ogc-client

A TypeScript library for interacting with geospatial services
https://camptocamp.github.io/ogc-client/
BSD 3-Clause "New" or "Revised" License
66 stars 12 forks source link

Add info formats to WMS capabilities #66

Closed RobQuincey-DC closed 1 month ago

RobQuincey-DC commented 3 months ago

This PR adds infoFormats as a property to the capabilities model. infoFormats are derived from the WMS GetFeatureInfo formats list and provide a list of formats (MIME types) that can be used in GetFeatureInfo requests.

This has been added to the GenericEndpointInfo class, however, this list is only retrieved in WMS scenarios, so this may not be the right place. Happy to take suggestions on a more appropriate place for this.