WMSDescribeLayer.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Copyright (c) 2006-2013 by OpenLayers Contributors (see authors.txt for
  2. * full list of contributors). Published under the 2-clause BSD license.
  3. * See license.txt in the OpenLayers distribution or repository for the
  4. * full text of the license. */
  5. /**
  6. * @requires OpenLayers/Format/XML/VersionedOGC.js
  7. */
  8. /**
  9. * Class: OpenLayers.Format.WMSDescribeLayer
  10. * Read SLD WMS DescribeLayer response
  11. * DescribeLayer is meant to couple WMS to WFS and WCS
  12. *
  13. * Inherits from:
  14. * - <OpenLayers.Format.XML.VersionedOGC>
  15. */
  16. OpenLayers.Format.WMSDescribeLayer = OpenLayers.Class(OpenLayers.Format.XML.VersionedOGC, {
  17. /**
  18. * APIProperty: defaultVersion
  19. * {String} Version number to assume if none found. Default is "1.1.1".
  20. */
  21. defaultVersion: "1.1.1",
  22. /**
  23. * Constructor: OpenLayers.Format.WMSDescribeLayer
  24. * Create a new parser for WMS DescribeLayer responses.
  25. *
  26. * Parameters:
  27. * options - {Object} An optional object whose properties will be set on
  28. * this instance.
  29. */
  30. /**
  31. * APIMethod: read
  32. * Read DescribeLayer data from a string, and return the response.
  33. * The OGC currently defines 2 formats which are allowed for output,
  34. * so we need to parse these 2 types
  35. *
  36. * Parameters:
  37. * data - {String} or {DOMElement} data to read/parse.
  38. *
  39. * Returns:
  40. * {Array} Array of {<LayerDescription>} objects which have:
  41. * - {String} owsType: WFS/WCS
  42. * - {String} owsURL: the online resource
  43. * - {String} typeName: the name of the typename on the service
  44. */
  45. CLASS_NAME: "OpenLayers.Format.WMSDescribeLayer"
  46. });