highsource / ogc-schemas

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

ogc-schemas

OGC Schemas project provides JAXB bindings for XML Schemas defined by the Open Geospatial Consortium (OGC).

OGC Schemas

OGC Schemas project provides JAXB and Jsonix bindings for some of the XML Schemas defined by OGC.

This allows converting between XML (conforming to one of these schemas) and Java objects in Java or JSON in JavaScript.

Supports the following schemas:

JavaScript Example


var XLink_1_0 = require('w3c-schemas').XLink_1_0;
var OWS_1_1_0 = require('ogc-schemas').OWS_1_1_0;
var WPS_1_0_0 = require('ogc-schemas').WPS_1_0_0;

var context =  new Jsonix.Context([XLink_1_0, OWS_1_1_0, WPS_1_0_0]);
var unmarshaller = context.createUnmarshaller();
unmarshaller.unmarshalFile("tests/WPS/1.0.0/execute-01.xml", function(result) {
    test.equal("geom", result.value.dataInputs.input[0].title.value);
    test.done();
});