highsource / ogc-schemas

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

WCS_1_1 bug when unmarshalling WCS version 1.1.1 xml #198

Closed PhilippePinheiroLIST closed 5 years ago

PhilippePinheiroLIST commented 6 years ago

When unmarshalling a WCS version 1.1.1 xml I get the following error message

Error: Element [{http://www.opengis.net/wcs/1.1.1}wcs:Capabilities] could not be unmarshalled as is not known in this context and the property does not allow DOM content.

Here is my code :

var url = "http://geoweb2.sbg.ac.at/geoserver/wms?SERVICE=WCS&REQUEST=GetCapabilities&VERSION=1.1.1"; var context = new Jsonix.Context([XLink_1_0, OWS_1_1_0, GML_3_1_1, SMIL_2_0,SMIL_2_0_Language, WCS_1_1]); var unmarshaller = context.createUnmarshaller(); unmarshaller.unmarshalURL(url, function(result){ console.log(result.value); callback(result.value); });

highsource commented 5 years ago

This does not work as the XML is of version WCS 1.1.1, not 1.1. Currently only 1.1 is supported, not 1.1.1. 1.1.1 also does not seem to be the OGC standard: http://schemas.opengis.net/wcs/

highsource commented 5 years ago

This should be fixed now, added WCS_1_1_1. Your XML file roundtrips OK now.