JSON Schema target ShapeChange configuration

Copyright © 2013 Open Geospatial Consortium. 40

7.2.4 JSON Schema target

Table 4 – Parameters of the JSON Schema target Parameter Value Comment outputDirectory wxxmjson or wxxmjsonext Directory in which the JSON Schema documents are written defaultEncodingRule geoservices or geoservices_extended Both encoding rules have been used jsonBaseURI http:shapechange.net tmpows9wxxmjson or http:shapechange.net tmpows9wxxmjsonext Base URI of all JSON schema documents mapEntriesmapEntry see Table 5 see 5.2.1 Table 5 – Pre-defined mapping of types in the application schemas to JSON Schema Application schema type JSON schema geoservices JSON schema geoservices_extended AbstractFeature http:schemas.opengis.netgsr1.0feature.json ExtentOf http:schemas.opengis.netgsr1.0geometry.json TM_PeriodDuration integer AshConcentration number http:shapechange.nettmp ows9jsonmeasure.json HorizontalDistance number http:shapechange.nettmp ows9jsonmeasure.json HorizontalVisibilityDistance number http:shapechange.nettmp ows9jsonmeasure.json VerticalVisibilityDistance number http:shapechange.nettmp ows9jsonmeasure.json VerticalDistance number http:shapechange.nettmp ows9jsonmeasure.json DistanceType number http:shapechange.nettmp ows9jsonmeasure.json Depth number http:shapechange.nettmp Copyright © 2013 Open Geospatial Consortium. 41 ows9jsonmeasure.json PercentageType number http:shapechange.nettmp ows9jsonmeasure.json QPressure number http:shapechange.nettmp ows9jsonmeasure.json RVRDistance number http:shapechange.nettmp ows9jsonmeasure.json ValPercentType number http:shapechange.nettmp ows9jsonmeasure.json ValPressureType number http:shapechange.nettmp ows9jsonmeasure.json PressureType number http:shapechange.nettmp ows9jsonmeasure.json ValSpeedType number http:shapechange.nettmp ows9jsonmeasure.json WindGust number http:shapechange.nettmp ows9jsonmeasure.json WindSpeed number http:shapechange.nettmp ows9jsonmeasure.json TemperatureType number http:shapechange.nettmp ows9jsonmeasure.json WindDirection number http:shapechange.nettmp ows9jsonmeasure.json Point ref:http:schemas.opengis.netgsr1.0point.json ElevatedPoint ref:http:schemas.opengis.netgsr1.0point.json Curve http:schemas.opengis.netgsr1.0polyline.json ElevatedCurve http:schemas.opengis.netgsr1.0polyline.json Surface http:schemas.opengis.netgsr1.0polygon.json ElevatedSurface http:schemas.opengis.netgsr1.0polygon.json Note: that some of the mapped JSON representations are incomplete as no suitable JSON schema exists that could be referenced. For example, the geometries or the time period information does not represent all the information in the conceptual schema. Copyright © 2013 Open Geospatial Consortium. 42 In addition, there are types used in the application schemas without an implementation in JSON. This is the same issue as the one discussed with respect to GML 2.1 see 6.2.2. However, unlike the GML case, no alternate encoding of these types in JSON Schema exists. In the schema conversion, a warning is issued. The type in JSON Schema used in these cases is string in the geoservices and object in the geoservices_extended encoding rule. While this represents such properties in the implementation schema, these parts of the schema may be of limited use.

7.3 Implementation schemas