Modifier and Type | Method and Description |
---|---|
static Node |
getNode(Node wmtsCapabilities,
String xPathAbstract) |
static Node |
getNode(XPath xPath,
Node wmtsCapabilities,
String xPathAbstract) |
static NodeList |
getNodeElements(Node wmtsCapabilities,
String xPathAbstract) |
static NodeList |
getNodeElements(XPath xPath,
Node wmtsCapabilities,
String xPathAbstract) |
static String |
getNodeText(Node wmtsCapabilities,
String xPathAbstract) |
static String |
getNodeText(XPath xPath,
Node wmtsCapabilities,
String xPathAbstract) |
static Set<ProtocolBinding> |
getOperationBindings(Document wmtsMetadata,
String opName)
Determines which protocol bindings are supported for a given operation.
|
static URI |
getOperationEndpoint_KVP(Document wmtsMetadata,
String opName,
ProtocolBinding binding)
Extracts a request KVP endpoint from a WMTS capabilities document.
|
static URI |
getOperationEndpoint_REST(Document wmtsMetadata,
String opName,
ProtocolBinding binding)
Extracts a request REST endpoint from a WMTS capabilities document.
|
static URI |
getOperationEndpoint_SOAP(Document wmtsMetadata,
String opName,
ProtocolBinding binding)
Extracts a request SOAP endpoint from a WMTS capabilities document.
|
static BoundingBox |
parseBoundingBox(Node bboxNode,
boolean presumedWGS84)
Parses the BoundingBox from the layer; either as the WGS84 Bbox, or one of the other listed ones
|
static NodeList |
parseLayerChildElements(Document wmtsCapabilities,
String layerName,
String childElement)
Parses the configured formats for the given operation.
|
static List<LayerInfo> |
parseLayerInfo(Document wmtsCapabilities)
Parses all named layers from the capabilities document.
|
static NodeList |
parseLayers(Document wmtsCapabilities) |
static NodeList |
parseLayers(XPath xPath,
Document wmtsCapabilities) |
static String |
parseNodeElementName(Node nodeElement) |
static String |
parseNodeElementName(XPath xPath,
Node nodeElement) |
public static URI getOperationEndpoint_KVP(Document wmtsMetadata, String opName, ProtocolBinding binding)
wmtsMetadata
- the document node containing service metadata (OGC capabilities document).opName
- the operation (request) namebinding
- the message binding to use (if null
any supported binding will be used)null
if no matching endpoint is foundpublic static URI getOperationEndpoint_REST(Document wmtsMetadata, String opName, ProtocolBinding binding)
wmtsMetadata
- the document node containing service metadata (OGC capabilities document).opName
- the operation (request) namebinding
- the message binding to use (if null
any supported binding will be used)null
if no matching endpoint is foundpublic static URI getOperationEndpoint_SOAP(Document wmtsMetadata, String opName, ProtocolBinding binding)
wmtsMetadata
- the document node containing service metadata (OGC capabilities document).opName
- the operation (request) namebinding
- the message binding to use (if null
any supported binding will be used)null
if no matching endpoint is foundpublic static Set<ProtocolBinding> getOperationBindings(Document wmtsMetadata, String opName)
wmtsMetadata
- the capabilities document (wmts:Capabilities), never null
opName
- the name of the WMTS operationnull
.public static NodeList getNodeElements(XPath xPath, Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static NodeList getNodeElements(Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static Node getNode(XPath xPath, Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static Node getNode(Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static String getNodeText(XPath xPath, Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static String getNodeText(Node wmtsCapabilities, String xPathAbstract) throws XPathExpressionException
XPathExpressionException
public static NodeList parseLayerChildElements(Document wmtsCapabilities, String layerName, String childElement)
wmtsCapabilities
- the capabilities document (wmts:Capabilities), never null
layerName
- the name of the selected layerchildElement
- the child element(s) of the layernull
public static List<LayerInfo> parseLayerInfo(Document wmtsCapabilities)
wmtsCapabilities
- the capabilities document (wmts:Capabilities), never null
LayerInfo
s supported by the WMTS, never null
public static String parseNodeElementName(XPath xPath, Node nodeElement) throws XPathExpressionException
XPathExpressionException
public static String parseNodeElementName(Node nodeElement) throws XPathExpressionException
XPathExpressionException
public static BoundingBox parseBoundingBox(Node bboxNode, boolean presumedWGS84)
bboxNode
- node of the layer, never null
wgs84 if parsing the WGS84 bounding boxpresumedWGS84
- are we working in WGS84 bounding box or notBoundingBox
- crs is CRS:84 if wgs84 is true, otherwise parse from attributeCopyright © 2022 Open Geospatial Consortium. All rights reserved.