Skip to content

An error occurs when parsing WMS capabilities without root.Layer.SRS #11175

@MV88

Description

@MV88

Description

it's failing here

const SRSList = root.Layer && castArray(root.Layer.SRS || root.Layer.CRS)?.map((crs) => crs.toUpperCase()) || [];

if the CRS is completely missing from Capabilities doc

How to reproduce

  • add a WMS service with this problem (no SRS defined globally)
  • save

Expected Result

to be able to save it and start adding layer
Current Result

an error is printed on screen
Image

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions