|
|
|
|
@@ -17,7 +17,7 @@ import _ol_xml_ from '../xml.js';
|
|
|
|
|
* @extends {ol.format.XML}
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
const _ol_format_WMTSCapabilities_ = function() {
|
|
|
|
|
const WMTSCapabilities = function() {
|
|
|
|
|
XML.call(this);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -27,7 +27,7 @@ const _ol_format_WMTSCapabilities_ = function() {
|
|
|
|
|
this.owsParser_ = new OWS();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
inherits(_ol_format_WMTSCapabilities_, XML);
|
|
|
|
|
inherits(WMTSCapabilities, XML);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -38,13 +38,13 @@ inherits(_ol_format_WMTSCapabilities_, XML);
|
|
|
|
|
* @return {Object} An object representing the WMTS capabilities.
|
|
|
|
|
* @api
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.prototype.read;
|
|
|
|
|
WMTSCapabilities.prototype.read;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @inheritDoc
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.prototype.readFromDocument = function(doc) {
|
|
|
|
|
WMTSCapabilities.prototype.readFromDocument = function(doc) {
|
|
|
|
|
for (let n = doc.firstChild; n; n = n.nextSibling) {
|
|
|
|
|
if (n.nodeType == Node.ELEMENT_NODE) {
|
|
|
|
|
return this.readFromNode(n);
|
|
|
|
|
@@ -57,7 +57,7 @@ _ol_format_WMTSCapabilities_.prototype.readFromDocument = function(doc) {
|
|
|
|
|
/**
|
|
|
|
|
* @inheritDoc
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.prototype.readFromNode = function(node) {
|
|
|
|
|
WMTSCapabilities.prototype.readFromNode = function(node) {
|
|
|
|
|
const version = node.getAttribute('version').trim();
|
|
|
|
|
let WMTSCapabilityObject = this.owsParser_.readFromNode(node);
|
|
|
|
|
if (!WMTSCapabilityObject) {
|
|
|
|
|
@@ -65,7 +65,7 @@ _ol_format_WMTSCapabilities_.prototype.readFromNode = function(node) {
|
|
|
|
|
}
|
|
|
|
|
WMTSCapabilityObject['version'] = version;
|
|
|
|
|
WMTSCapabilityObject = _ol_xml_.pushParseAndPop(WMTSCapabilityObject,
|
|
|
|
|
_ol_format_WMTSCapabilities_.PARSERS_, node, []);
|
|
|
|
|
WMTSCapabilities.PARSERS_, node, []);
|
|
|
|
|
return WMTSCapabilityObject ? WMTSCapabilityObject : null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -76,9 +76,9 @@ _ol_format_WMTSCapabilities_.prototype.readFromNode = function(node) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Attribution object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readContents_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readContents_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.CONTENTS_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.CONTENTS_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -88,9 +88,9 @@ _ol_format_WMTSCapabilities_.readContents_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Layers object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readLayer_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readLayer_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.LAYER_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.LAYER_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -100,9 +100,9 @@ _ol_format_WMTSCapabilities_.readLayer_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Tile Matrix Set object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixSet_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readTileMatrixSet_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.TMS_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -112,9 +112,9 @@ _ol_format_WMTSCapabilities_.readTileMatrixSet_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Style object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readStyle_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readStyle_ = function(node, objectStack) {
|
|
|
|
|
const style = _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.STYLE_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.STYLE_PARSERS_, node, objectStack);
|
|
|
|
|
if (!style) {
|
|
|
|
|
return undefined;
|
|
|
|
|
}
|
|
|
|
|
@@ -131,10 +131,10 @@ _ol_format_WMTSCapabilities_.readStyle_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Tile Matrix Set Link object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixSetLink_ = function(node,
|
|
|
|
|
WMTSCapabilities.readTileMatrixSetLink_ = function(node,
|
|
|
|
|
objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LINKS_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.TMS_LINKS_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -144,9 +144,9 @@ _ol_format_WMTSCapabilities_.readTileMatrixSetLink_ = function(node,
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Dimension object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readDimensions_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readDimensions_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.DIMENSION_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.DIMENSION_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -156,7 +156,7 @@ _ol_format_WMTSCapabilities_.readDimensions_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Resource URL object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readResourceUrl_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readResourceUrl_ = function(node, objectStack) {
|
|
|
|
|
const format = node.getAttribute('format');
|
|
|
|
|
const template = node.getAttribute('template');
|
|
|
|
|
const resourceType = node.getAttribute('resourceType');
|
|
|
|
|
@@ -180,9 +180,9 @@ _ol_format_WMTSCapabilities_.readResourceUrl_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} WGS84 BBox object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readWgs84BoundingBox_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readWgs84BoundingBox_ = function(node, objectStack) {
|
|
|
|
|
const coordinates = _ol_xml_.pushParseAndPop([],
|
|
|
|
|
_ol_format_WMTSCapabilities_.WGS84_BBOX_READERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.WGS84_BBOX_READERS_, node, objectStack);
|
|
|
|
|
if (coordinates.length != 2) {
|
|
|
|
|
return undefined;
|
|
|
|
|
}
|
|
|
|
|
@@ -196,7 +196,7 @@ _ol_format_WMTSCapabilities_.readWgs84BoundingBox_ = function(node, objectStack)
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Legend object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readLegendUrl_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readLegendUrl_ = function(node, objectStack) {
|
|
|
|
|
const legend = {};
|
|
|
|
|
legend['format'] = node.getAttribute('format');
|
|
|
|
|
legend['href'] = XLink.readHref(node);
|
|
|
|
|
@@ -210,7 +210,7 @@ _ol_format_WMTSCapabilities_.readLegendUrl_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} Coordinates object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readCoordinates_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readCoordinates_ = function(node, objectStack) {
|
|
|
|
|
const coordinates = XSD.readString(node).split(' ');
|
|
|
|
|
if (!coordinates || coordinates.length != 2) {
|
|
|
|
|
return undefined;
|
|
|
|
|
@@ -230,9 +230,9 @@ _ol_format_WMTSCapabilities_.readCoordinates_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} TileMatrix object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrix_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readTileMatrix_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.TM_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.TM_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -242,10 +242,10 @@ _ol_format_WMTSCapabilities_.readTileMatrix_ = function(node, objectStack) {
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} TileMatrixSetLimits Object.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixLimitsList_ = function(node,
|
|
|
|
|
WMTSCapabilities.readTileMatrixLimitsList_ = function(node,
|
|
|
|
|
objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop([],
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LIMITS_LIST_PARSERS_, node,
|
|
|
|
|
WMTSCapabilities.TMS_LIMITS_LIST_PARSERS_, node,
|
|
|
|
|
objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -256,9 +256,9 @@ _ol_format_WMTSCapabilities_.readTileMatrixLimitsList_ = function(node,
|
|
|
|
|
* @param {Array.<*>} objectStack Object stack.
|
|
|
|
|
* @return {Object|undefined} TileMatrixLimits Array.
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixLimits_ = function(node, objectStack) {
|
|
|
|
|
WMTSCapabilities.readTileMatrixLimits_ = function(node, objectStack) {
|
|
|
|
|
return _ol_xml_.pushParseAndPop({},
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LIMITS_PARSERS_, node, objectStack);
|
|
|
|
|
WMTSCapabilities.TMS_LIMITS_PARSERS_, node, objectStack);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -267,7 +267,7 @@ _ol_format_WMTSCapabilities_.readTileMatrixLimits_ = function(node, objectStack)
|
|
|
|
|
* @private
|
|
|
|
|
* @type {Array.<string>}
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_ = [
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_ = [
|
|
|
|
|
null,
|
|
|
|
|
'http://www.opengis.net/wmts/1.0'
|
|
|
|
|
];
|
|
|
|
|
@@ -278,7 +278,7 @@ _ol_format_WMTSCapabilities_.NAMESPACE_URIS_ = [
|
|
|
|
|
* @private
|
|
|
|
|
* @type {Array.<string>}
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_ = [
|
|
|
|
|
WMTSCapabilities.OWS_NAMESPACE_URIS_ = [
|
|
|
|
|
null,
|
|
|
|
|
'http://www.opengis.net/ows/1.1'
|
|
|
|
|
];
|
|
|
|
|
@@ -289,10 +289,10 @@ _ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_ = [
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'Contents': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readContents_)
|
|
|
|
|
WMTSCapabilities.readContents_)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -301,12 +301,12 @@ _ol_format_WMTSCapabilities_.PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.CONTENTS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.CONTENTS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'Layer': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readLayer_),
|
|
|
|
|
WMTSCapabilities.readLayer_),
|
|
|
|
|
'TileMatrixSet': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixSet_)
|
|
|
|
|
WMTSCapabilities.readTileMatrixSet_)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -315,25 +315,25 @@ _ol_format_WMTSCapabilities_.CONTENTS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.LAYER_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.LAYER_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'Style': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readStyle_),
|
|
|
|
|
WMTSCapabilities.readStyle_),
|
|
|
|
|
'Format': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'TileMatrixSetLink': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixSetLink_),
|
|
|
|
|
WMTSCapabilities.readTileMatrixSetLink_),
|
|
|
|
|
'Dimension': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readDimensions_),
|
|
|
|
|
WMTSCapabilities.readDimensions_),
|
|
|
|
|
'ResourceURL': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readResourceUrl_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.readResourceUrl_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'Title': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'Abstract': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'WGS84BoundingBox': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readWgs84BoundingBox_),
|
|
|
|
|
WMTSCapabilities.readWgs84BoundingBox_),
|
|
|
|
|
'Identifier': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString)
|
|
|
|
|
}));
|
|
|
|
|
@@ -344,11 +344,11 @@ _ol_format_WMTSCapabilities_.LAYER_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.STYLE_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.STYLE_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'LegendURL': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readLegendUrl_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.readLegendUrl_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'Title': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'Identifier': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
@@ -361,12 +361,12 @@ _ol_format_WMTSCapabilities_.STYLE_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LINKS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.TMS_LINKS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'TileMatrixSet': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'TileMatrixSetLimits': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixLimitsList_)
|
|
|
|
|
WMTSCapabilities.readTileMatrixLimitsList_)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@@ -374,10 +374,10 @@ _ol_format_WMTSCapabilities_.TMS_LINKS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LIMITS_LIST_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.TMS_LIMITS_LIST_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'TileMatrixLimits': _ol_xml_.makeArrayPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrixLimits_)
|
|
|
|
|
WMTSCapabilities.readTileMatrixLimits_)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -386,8 +386,8 @@ _ol_format_WMTSCapabilities_.TMS_LIMITS_LIST_PARSERS_ = _ol_xml_.makeStructureNS
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_LIMITS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.TMS_LIMITS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'TileMatrix': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'MinTileRow': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
@@ -406,13 +406,13 @@ _ol_format_WMTSCapabilities_.TMS_LIMITS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.DIMENSION_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.DIMENSION_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'Default': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'Value': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
XSD.readString)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
}, _ol_xml_.makeStructureNS(WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'Identifier': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString)
|
|
|
|
|
}));
|
|
|
|
|
@@ -423,12 +423,12 @@ _ol_format_WMTSCapabilities_.DIMENSION_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.WGS84_BBOX_READERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.WGS84_BBOX_READERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'LowerCorner': _ol_xml_.makeArrayPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readCoordinates_),
|
|
|
|
|
WMTSCapabilities.readCoordinates_),
|
|
|
|
|
'UpperCorner': _ol_xml_.makeArrayPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readCoordinates_)
|
|
|
|
|
WMTSCapabilities.readCoordinates_)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -437,13 +437,13 @@ _ol_format_WMTSCapabilities_.WGS84_BBOX_READERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.TMS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.TMS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'WellKnownScaleSet': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'TileMatrix': _ol_xml_.makeObjectPropertyPusher(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readTileMatrix_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.readTileMatrix_)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'SupportedCRS': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString),
|
|
|
|
|
'Identifier': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
@@ -456,10 +456,10 @@ _ol_format_WMTSCapabilities_.TMS_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
* @type {Object.<string, Object.<string, ol.XmlParser>>}
|
|
|
|
|
* @private
|
|
|
|
|
*/
|
|
|
|
|
_ol_format_WMTSCapabilities_.TM_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
_ol_format_WMTSCapabilities_.NAMESPACE_URIS_, {
|
|
|
|
|
WMTSCapabilities.TM_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
WMTSCapabilities.NAMESPACE_URIS_, {
|
|
|
|
|
'TopLeftCorner': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
_ol_format_WMTSCapabilities_.readCoordinates_),
|
|
|
|
|
WMTSCapabilities.readCoordinates_),
|
|
|
|
|
'ScaleDenominator': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readDecimal),
|
|
|
|
|
'TileWidth': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
@@ -470,8 +470,8 @@ _ol_format_WMTSCapabilities_.TM_PARSERS_ = _ol_xml_.makeStructureNS(
|
|
|
|
|
XSD.readNonNegativeInteger),
|
|
|
|
|
'MatrixHeight': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readNonNegativeInteger)
|
|
|
|
|
}, _ol_xml_.makeStructureNS(_ol_format_WMTSCapabilities_.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
}, _ol_xml_.makeStructureNS(WMTSCapabilities.OWS_NAMESPACE_URIS_, {
|
|
|
|
|
'Identifier': _ol_xml_.makeObjectPropertySetter(
|
|
|
|
|
XSD.readString)
|
|
|
|
|
}));
|
|
|
|
|
export default _ol_format_WMTSCapabilities_;
|
|
|
|
|
export default WMTSCapabilities;
|
|
|
|
|
|