highsource / ogc-schemas

XML<->Java and XML<->JS for OGC XSDs.
BSD 2-Clause "Simplified" License
82 stars 49 forks source link

WMTS Capabilities Content node does not allow layers to be added #222

Open travis-val opened 4 years ago

travis-val commented 4 years ago

The WMTS 1.0 ContentsType class is missing the ability to add a LayerType class. It can be added through one of the DatasetDescriptionSummary related methods, but this results in errors when the capabilities object is serialized. It will produce nodes named:

<ows:DatasetDescriptionSummary xsi:type="LayerType">

Instead of:

<Layer>

A possible solution is this commit.