2.6.1 • Published 10 years ago
ogc-schemas v2.6.1
OGC Schemas
ogc-schemas package provides Jsonix XML-JSON bindings for some of the XML Schemas defined by OGC.
This allows converting between XML (conforming to one of these schemas) and JSON in pure JavaScript.
Supports the following schemas:
ARML_2_0CityGML_1_0CityGML_Appearance_1_0CityGML_Building_1_0CityGML_CityFuntiture_1_0CityGML_CityObjectGroup_1_0CityGML_Generics_1_0CityGML_LandUse_1_0CityGML_Relief_1_0CityGML_TexturedSurface_1_0CityGML_Transportation_1_0CityGML_Vegetation_1_0CityGML_Waterbody_1_0
CityGML_2_0CityGML_Appearance_2_0CityGML_Bridge_2_0CityGML_Building_2_0CityGML_CityFuntiture_2_0CityGML_CityObjectGroup_2_0CityGML_Generics_2_0CityGML_LandUse_2_0CityGML_Relief_2_0CityGML_TexturedSurface_2_0CityGML_Transportation_2_0CityGML_Tunnel_2_0CityGML_Vegetation_2_0CityGML_Waterbody_2_0
CSW_2_0_2DC_1_1DCT
EOP_1_0EOP_ATM_1_0EOP_OPT_1_0EOP_SAR_1_0EOSPS_2_0Filter_1_0_0Filter_1_1_0Filter_2_0GML_1_0_0GML_2_1_2GML_3_1_1GML_3_2_0GML_3_2_1GML_CE_3_3GML_EXR_3_3GML_LR_3_3GML_LRO_3_3GML_LROV_3_3GML_LRTR_3_3GML_RGRID_3_3GML_TIN_3_3GML_XBT_3_3GMLCOV_1_0GMLCOV_GeoTIFF_1_0GMLJP2_2_0SMIL_2_0SMIL_2_0_LanguageIC_2_0IC_2_1IndoorGML_Core_1_0IndoorGML_Naviagation_1_0ISO19139_GCO_20070417ISO19139_GMD_20070417ISO19139_GMX_20070417ISO19139_GSR_20070417ISO19139_GSS_20070417ISO19139_GTS_20070417ISO19139_GCO_20060504ISO19139_GMD_20060504ISO19139_GMX_20060504ISO19139_GSR_20060504ISO19139_GSS_20060504ISO19139_GTS_20060504ISO19139_SRV_20060504KML_2_1KML_2_2_0KML_2_3OLS_1_1_0OLS_1_2OLS_NAV_1_3OM_1_0_0OM_2_0OMEO_ALT_2_0OMEO_ATM_2_0OMEO_EOP_2_0OMEO_LMB_2_0OMEO_OPT_2_0OMEO_SAR_2_0OMEO_SEN1_2_0OMEO_ALT_2_0OMEO_SSP_2_0OMX_1_0_0OSEO_1_0OWC_0_3_1OWS_1_0_0OWS_1_1_0OWS_2_0Sampling_1_0_0Sampling_2_0SamplingSpatial_2_0SamplingSpecimen_2_0SE_1_1_0SensorML_1_0_0SensorML_1_0_1SensorML_2_0SLD_1_0_0SLD_1_0_0_GeoServerSLD_1_1_0SPS_1_0_0SPS_2_0SOS_1_0_0SOS_1_0_0_FilterSOS_2_0SWE_1_0_0SWE_1_0_1SWE_2_0SWES_2_0WSN_T_1
TJS_1_0TML_1_0_0WAMI_1_0_0WAMI_1_0_1WAMI_Common_1_0_1
WAMI_1_0_2WAMI_Common_1_0_0
WaterML_2_0WCPS_1_0WCS_1_0_0GML4WCS_1_0_0
WCS_1_1WCS_2_0WCS_CRS_1_0WCS_Interpolation_1_0WCS_Processing_2_0WCS_Range_Subsetting_1_0WCS_Scaling_1_0WCS_WCSEO_1_0WCST_1_1WFS_1_0_0WFS_1_1_0WFS_2_0WMS_1_0_0WMS_1_1_0WMS_1_1_1WMS_1_3_0WMS_1_3_0_ExceptionsWMSC_1_1_1WPS_1_0_0WPS_2_0_0xAL_2_0
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();
});