Sha256: 99a61e5b965f45d3484597f978d97656ff6638ec553dea2e04b72b8a3d889656

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 KB

Contents

/* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
 * full list of contributors). Published under the 2-clause BSD license.
 * See license.txt in the OpenLayers distribution or repository for the
 * full text of the license. */

/**
 * @requires OpenLayers/Format/WCSCapabilities.js
 */

/**
 * Class: OpenLayers.Format.WCSCapabilities.v1
 * Abstract class not to be instantiated directly.
 * 
 * Inherits from:
 *  - <OpenLayers.Format.XML>
 */
OpenLayers.Format.WCSCapabilities.v1 = OpenLayers.Class(
    OpenLayers.Format.XML, {

    regExes: {
        trimSpace: (/^\s*|\s*$/g),
        splitSpace: (/\s+/)
    },

    /**
     * Property: defaultPrefix
     */
    defaultPrefix: "wcs",

    /**
     * APIMethod: read
     * Read capabilities data from a string, and return a list of coverages. 
     * 
     * Parameters: 
     * data - {String} or {DOMElement} data to read/parse.
     *
     * Returns:
     * {Array} List of named coverages.
     */
    read: function(data) {
        if(typeof data == "string") {
            data = OpenLayers.Format.XML.prototype.read.apply(this, [data]);
        }
        var raw = data;
        if(data && data.nodeType == 9) {
            data = data.documentElement;
        }
        var capabilities = {};
        this.readNode(data, capabilities);
        return capabilities;
    },

    CLASS_NAME: "OpenLayers.Format.WCSCapabilities.v1" 

});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.9 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.8 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.7 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.6 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.5 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js
postrunner-0.0.4 misc/openlayers/lib/OpenLayers/Format/WCSCapabilities/v1.js