Overview

Namespaces

  • Mapbender
    • Component
      • HTTP
    • CoreBundle
      • Command
      • Component
        • Exception
      • Controller
      • DataFixtures
        • ORM
      • DependencyInjection
      • Element
        • Type
      • Entity
      • EventListener
      • Extension
      • Form
        • DataTransformer
        • EventListener
        • Type
      • Security
      • Template
    • KmlBundle
      • Element
    • ManagerBundle
      • Controller
      • Form
        • DataTransformer
        • Type
    • MonitoringBundle
      • Command
      • Component
      • Controller
      • DependencyInjection
      • Entity
      • EventListener
      • Form
    • PrintBundle
      • Component
      • Controller
    • WmcBundle
      • Component
        • Exception
      • Element
        • Type
      • Entity
      • Form
        • Type
    • WmsBundle
      • Component
        • Exception
      • Controller
      • DependencyInjection
      • Element
        • Type
      • Entity
      • Event
      • Form
        • EventListener
        • Type
    • WmtsBundle
      • Component
        • Exception
      • Controller
      • Entity
      • Form
        • Type
  • None
  • PHP

Classes

  • Attribution
  • Authority
  • Dimension
  • Extent
  • Identifier
  • IdentifierAuthority
  • LegendUrl
  • MetadataUrl
  • MinMax
  • OnlineResource
  • RequestInformation
  • Size
  • Style
  • WmsCapabilitiesParser
  • WmsCapabilitiesParser111
  • WmsCapabilitiesParser130
  • WmsInstanceConfiguration
  • WmsInstanceConfigurationOptions
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class WmsCapabilitiesParser

Class that Parses WMS GetCapabilies Document Parses WMS GetCapabilities documents

Direct known subclasses

Mapbender\WmsBundle\Component\WmsCapabilitiesParser111, Mapbender\WmsBundle\Component\WmsCapabilitiesParser130
Abstract
Namespace: Mapbender\WmsBundle\Component
Author: Karim Malhas
Author: Paul Schmidt
Located at Mapbender/WmsBundle/Component/WmsCapabilitiesParser.php
Methods summary
public
# __construct( DOMDocument $doc )

Creates an instance

Creates an instance

Parameters

$doc
DOMDocument
$doc
protected
# setReslolution( integer $resolution )

Sets the resolution

Sets the resolution

Parameters

$resolution
integer
$resolution
protected string
# getValue( string $xpath, DOMNode $contextElm = null )

Finds the value

Finds the value

Parameters

$xpath
string
$xpath xpath expression
$contextElm
DOMNode
$contextElm the node to use as context for evaluating the XPath expression.

Returns

string
the value of item or the selected item or null
abstract public
# parse( )

Parses the capabilities document

Parses the capabilities document

public static DOMDocument
# createDocument( string $data, boolean $validate = false )

Creates a document

Creates a document

Parameters

$data
string
$data the string containing the XML
$validate
boolean
$validate to validate of xml

Returns

DOMDocument
a GetCapabilites document

Throws

Mapbender\CoreBundle\Component\Exception\XmlParseException
if a GetCapabilities xml is not valid
Mapbender\WmsBundle\Component\Exception\WmsException
if an service exception
Mapbender\CoreBundle\Component\Exception\NotSupportedVersionException
if a service version is not supported
public static Mapbender\WmsBundle\Component\WmsCapabilitiesParser111
# getParser( DOMDocument $doc )

Gets a capabilities parser

Gets a capabilities parser

Parameters

$doc
DOMDocument
$doc the GetCapabilities document

Returns

Mapbender\WmsBundle\Component\WmsCapabilitiesParser111
|\Mapbender\WmsBundle\Component\WmsCapabilitiesParser130 a capabilities parser

Throws

Mapbender\CoreBundle\Component\Exception\NotSupportedVersionException
if a service version is not supported
Properties summary
protected DOMDocument $doc
#

The XML representation of the Capabilites Document

The XML representation of the Capabilites Document

protected mixed $xpath
#

An Xpath-instance

An Xpath-instance

protected integer $resolution 72
#

The resolution

The resolution

Mapbender3 API documenation API documentation generated by ApiGen 2.8.0