You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
7.1 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5764],{57207:function(t,e,r){var n=r(3949),o=r(28082),i=r(4750),u=r(65617);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=d(t);if(e){var o=d(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function l(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=[null,"http://www.opengis.net/wms"],P=(0,o.C5)(y,{Service:(0,o.Pr)((function(t,e){return(0,o.O)({},p,t,e)})),Capability:(0,o.Pr)((function(t,e){return(0,o.O)({},b,t,e)}))}),b=(0,o.C5)(y,{Request:(0,o.Pr)((function(t,e){return(0,o.O)({},x,t,e)})),Exception:(0,o.Pr)((function(t,e){return(0,o.O)([],C,t,e)})),Layer:(0,o.Pr)((function(t,e){var r=(0,o.O)({},O,t,e);if(void 0===r.Layer)return Object.assign(r,E(t,e));return r}))}),v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(u,t);var e,r,n,i=f(u);function u(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(t=i.call(this)).version=void 0,t}return e=u,(r=[{key:"readFromNode",value:function(t){this.version=t.getAttribute("version").trim();var e=(0,o.O)({version:this.version},P,t,[]);return e||null}}])&&c(e.prototype,r),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(n.Z),p=(0,o.C5)(y,{Name:(0,o.Pr)(i.s2),Title:(0,o.Pr)(i.s2),Abstract:(0,o.Pr)(i.s2),KeywordList:(0,o.Pr)(M),OnlineResource:(0,o.Pr)(u.Q),ContactInformation:(0,o.Pr)((function(t,e){return(0,o.O)({},g,t,e)})),Fees:(0,o.Pr)(i.s2),AccessConstraints:(0,o.Pr)(i.s2),LayerLimit:(0,o.Pr)(i.$L),MaxWidth:(0,o.Pr)(i.$L),MaxHeight:(0,o.Pr)(i.$L)}),g=(0,o.C5)(y,{ContactPersonPrimary:(0,o.Pr)((function(t,e){return(0,o.O)({},h,t,e)})),ContactPosition:(0,o.Pr)(i.s2),ContactAddress:(0,o.Pr)((function(t,e){return(0,o.O)({},m,t,e)})),ContactVoiceTelephone:(0,o.Pr)(i.s2),ContactFacsimileTelephone:(0,o.Pr)(i.s2),ContactElectronicMailAddress:(0,o.Pr)(i.s2)}),h=(0,o.C5)(y,{ContactPerson:(0,o.Pr)(i.s2),ContactOrganization:(0,o.Pr)(i.s2)}),m=(0,o.C5)(y,{AddressType:(0,o.Pr)(i.s2),Address:(0,o.Pr)(i.s2),City:(0,o.Pr)(i.s2),StateOrProvince:(0,o.Pr)(i.s2),PostCode:(0,o.Pr)(i.s2),Country:(0,o.Pr)(i.s2)}),C=(0,o.C5)(y,{Format:(0,o.Ei)(i.s2)}),O=(0,o.C5)(y,{Name:(0,o.Pr)(i.s2),Title:(0,o.Pr)(i.s2),Abstract:(0,o.Pr)(i.s2),KeywordList:(0,o.Pr)(M),CRS:(0,o.ke)(i.s2),EX_GeographicBoundingBox:(0,o.Pr)((function(t,e){var r=(0,o.O)({},L,t,e);if(!r)return;var n=r.westBoundLongitude,i=r.southBoundLatitude,u=r.eastBoundLongitude,a=r.northBoundLatitude;if(void 0===n||void 0===i||void 0===u||void 0===a)return;return[n,i,u,a]})),BoundingBox:(0,o.ke)((function(t,e){var r=[(0,i.ej)(t.getAttribute("minx")),(0,i.ej)(t.getAttribute("miny")),(0,i.ej)(t.getAttribute("maxx")),(0,i.ej)(t.getAttribute("maxy"))],n=[(0,i.ej)(t.getAttribute("resx")),(0,i.ej)(t.getAttribute("resy"))];return{crs:t.getAttribute("CRS"),extent:r,res:n}})),Dimension:(0,o.ke)((function(t,e){return{name:t.getAttribute("name"),units:t.getAttribute("units"),unitSymbol:t.getAttribute("unitSymbol"),default:t.getAttribute("default"),multipleValues:(0,i.v$)(t.getAttribute("multipleValues")),nearestValue:(0,i.v$)(t.getAttribute("nearestValue")),current:(0,i.v$)(t.getAttribute("current")),values:(0,i.s2)(t)}})),Attribution:(0,o.Pr)((function(t,e){return(0,o.O)({},A,t,e)})),AuthorityURL:(0,o.ke)((function(t,e){var r=T(t,e);if(r)return r.name=t.getAttribute("name"),r;return})),Identifier:(0,o.ke)(i.s2),MetadataURL:(0,o.ke)((function(t,e){var r=T(t,e);if(r)return r.type=t.getAttribute("type"),r;return})),DataURL:(0,o.ke)(T),FeatureListURL:(0,o.ke)(T),Style:(0,o.ke)((function(t,e){return(0,o.O)({},j,t,e)})),MinScaleDenominator:(0,o.Pr)(i.fy),MaxScaleDenominator:(0,o.Pr)(i.fy),Layer:(0,o.ke)(E)}),A=(0,o.C5)(y,{Title:(0,o.Pr)(i.s2),OnlineResource:(0,o.Pr)(u.Q),LogoURL:(0,o.Pr)(D)}),L=(0,o.C5)(y,{westBoundLongitude:(0,o.Pr)(i.fy),eastBoundLongitude:(0,o.Pr)(i.fy),southBoundLatitude:(0,o.Pr)(i.fy),northBoundLatitude:(0,o.Pr)(i.fy)}),x=(0,o.C5)(y,{GetCapabilities:(0,o.Pr)(_),GetMap:(0,o.Pr)(_),GetFeatureInfo:(0,o.Pr)(_)}),S=(0,o.C5)(y,{Format:(0,o.ke)(i.s2),DCPType:(0,o.ke)((function(t,e){return(0,o.O)({},w,t,e)}))}),w=(0,o.C5)(y,{HTTP:(0,o.Pr)((function(t,e){return(0,o.O)({},R,t,e)}))}),R=(0,o.C5)(y,{Get:(0,o.Pr)(T),Post:(0,o.Pr)(T)}),j=(0,o.C5)(y,{Name:(0,o.Pr)(i.s2),Title:(0,o.Pr)(i.s2),Abstract:(0,o.Pr)(i.s2),LegendURL:(0,o.ke)(D),StyleSheetURL:(0,o.Pr)(T),StyleURL:(0,o.Pr)(T)}),k=(0,o.C5)(y,{Format:(0,o.Pr)(i.s2),OnlineResource:(0,o.Pr)(u.Q)}),B=(0,o.C5)(y,{Keyword:(0,o.Ei)(i.s2)});function E(t,e){var r=e[e.length-1],n=(0,o.O)({},O,t,e);if(n){var u=(0,i.v$)(t.getAttribute("queryable"));void 0===u&&(u=r.queryable),n.queryable=void 0!==u&&u;var a=(0,i._E)(t.getAttribute("cascaded"));void 0===a&&(a=r.cascaded),n.cascaded=a;var c=(0,i.v$)(t.getAttribute("opaque"));void 0===c&&(c=r.opaque),n.opaque=void 0!==c&&c;var s=(0,i.v$)(t.getAttribute("noSubsets"));void 0===s&&(s=r.noSubsets),n.noSubsets=void 0!==s&&s;var f=(0,i.ej)(t.getAttribute("fixedWidth"));f||(f=r.fixedWidth),n.fixedWidth=f;var l=(0,i.ej)(t.getAttribute("fixedHeight"));l||(l=r.fixedHeight),n.fixedHeight=l;["Style","CRS","AuthorityURL"].forEach((function(t){if(t in r){var e=n[t]||[];n[t]=e.concat(r[t])}}));return["EX_GeographicBoundingBox","BoundingBox","Dimension","Attribution","MinScaleDenominator","MaxScaleDenominator"].forEach((function(t){if(!(t in n)){var e=r[t];n[t]=e}})),n}}function T(t,e){return(0,o.O)({},k,t,e)}function _(t,e){return(0,o.O)({},S,t,e)}function D(t,e){var r=T(t,e);if(r){var n=[(0,i._E)(t.getAttribute("width")),(0,i._E)(t.getAttribute("height"))];return r.size=n,r}}function M(t,e){return(0,o.O)([],B,t,e)}var U=new v;fetch("data/ogcsample.xml").then((function(t){return t.text()})).then((function(t){var e=U.read(t);document.getElementById("log").innerText=JSON.stringify(e,null,2)}))}},function(t){var e=function(e){return t(t.s=e)};e(9877),e(57207)}]);
//# sourceMappingURL=wms-capabilities.js.map