public class WMSXMLEncoder130 extends WMSXMLEncoder111
WMS 1.3.0 XML document encoder.
Convert the relevant WMS objects of SuperMap iServer to the XML document of WMS 1.3.0 service based on OGC standard.
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
NODE_ATT_SCHEMALOCATION
The xsi:schemaLocation property of the WMS 1.3.0 XML document.
|
protected static java.lang.String |
NODE_ATT_VERSION
The version property of the WMS 1.3.0 XML document.
|
protected static java.lang.String |
NODE_ATT_XMLNS
The xmlns property of the WMS 1.3.0 XML document.
|
protected static java.lang.String |
NODE_ATT_XSI
The xmlns:xsi property of the WMS 1.3.0 XML document.
|
capabilitiesDTDOrXSD, CRS, exceptionDTDOrXSD, featureDTDOrXSD, OGC_NAMESPACE_URL, providerUrl, SRS, WMS_NAMESPACE_URL
Constructor and Description |
---|
WMSXMLEncoder130()
The Constructor.
|
WMSXMLEncoder130(java.util.Map<java.lang.String,java.lang.String> urls)
Constructs the WMSXMLEncoder130 object according to a series of document directories.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
encode(OGCException[] exceptions)
Convert the
OGCException object to XML document string format of exception information. |
java.lang.String |
getVersion()
Gets the WMS service version.
|
protected void |
writeCRSNode(Node layerNode, WMSCapabilities wmsCapabilities)
Add CRS node in the Layer node.
|
protected void |
writeCRSNode(Node layerNode, WMSLayer wmsLayer)
Add SRS node in the Layer node.
|
protected Node |
writeLatLonBounds(Node layerNode, Rectangle2D latLonBounds)
Add the EX_GeographicBoundingBox node in Layer node, set the property of the node.
|
protected void |
writeLatLonBoundsAttribute(Node node, Rectangle2D layerBounds)
Set the property value of the EX_GeographicBoundingBox node.
|
protected Node |
writeRootNode(Node doc)
Create the root node of WMS 1.3.0 Capabilities XML document, which is WMS_Capabilities node.
|
protected void |
writeServiceNameNode(Node serviceNode)
Add Name node in Service node.
|
protected void |
writeSRSBounds(Node layerNode, WMSLayer wmsLayer)
Write to SRSBounds
|
encode, encode, ensureNoXSS, getBBoxAttributeValue, onlineResourceElement, writeCapabilitiesNode, writeLayer, writeLayerStyle, writerLayers, writeServiceNode
getCapabilitiesDTDOrXSD, getExceptionDTDOrXSD, getFeatureDTDOrXSD, setCapabilitiesDTDOrXSD, setExceptionDTDOrXSD, setFeatureDTDOrXSD, setProviderUrl
protected static final java.lang.String NODE_ATT_VERSION
The version property of the WMS 1.3.0 XML document.
The default value is “version”.
protected static final java.lang.String NODE_ATT_XMLNS
The xmlns property of the WMS 1.3.0 XML document.
The default is “xmlns”.
protected static final java.lang.String NODE_ATT_XSI
The xmlns:xsi property of the WMS 1.3.0 XML document.
The default is “xmlns:xsi”.
protected static final java.lang.String NODE_ATT_SCHEMALOCATION
The xsi:schemaLocation property of the WMS 1.3.0 XML document.
The default is “xsi:schemaLocation”.
public WMSXMLEncoder130()
public WMSXMLEncoder130(java.util.Map<java.lang.String,java.lang.String> urls)
urls
- This parameter is a Map mapping. The key values for the mapping are CapabilitiesDTDOrXSD, providerUrl, exceptionDTDOrXSD, and featureDTDOrXSD, and the key value is the corresponding document (URL) address.protected Node writeRootNode(Node doc)
Create the root node of WMS 1.3.0 Capabilities XML document, which is WMS_Capabilities node.
writeRootNode
in class WMSXMLEncoder111
doc
- XML document root node, such as “<?xml version="1.0" encoding="UTF-8"?>”protected Node writeLatLonBounds(Node layerNode, Rectangle2D latLonBounds)
Add the EX_GeographicBoundingBox node in Layer node, set the property of the node.
writeLatLonBounds
in class WMSXMLEncoder111
layerNode
- Layer node.latLonBounds
- geographical bounds.protected void writeLatLonBoundsAttribute(Node node, Rectangle2D layerBounds)
Set the property value of the EX_GeographicBoundingBox node.
The properties of the EX_GeographicBoundingBox node include westBoundLongitude, eastBoundLongitude, southBoundLatitude and northBoundLatitude.
writeLatLonBoundsAttribute
in class WMSXMLEncoder111
node
- EX_GeographicBoundingBox node.layerBounds
- geographical bounds.protected void writeServiceNameNode(Node serviceNode)
Add Name node in Service node.
The Name node is used to describe the name of the service. The value of the Name node defaults to "WMS".
writeServiceNameNode
in class WMSXMLEncoder111
serviceNode
- Service node.protected void writeCRSNode(Node layerNode, WMSCapabilities wmsCapabilities)
Add CRS node in the Layer node.
The default value of the SRS node is “CRS:84”.
writeCRSNode
in class WMSXMLEncoder111
layerNode
- Layer node.protected void writeCRSNode(Node layerNode, WMSLayer wmsLayer)
WMSXMLEncoder111
Add SRS node in the Layer node.
The default value of the SRS node is “EPSG:4326”.
writeCRSNode
in class WMSXMLEncoder111
layerNode
- Layer node.protected void writeSRSBounds(Node layerNode, WMSLayer wmsLayer)
writeSRSBounds
in class WMSXMLEncoder111
public java.lang.String encode(OGCException[] exceptions)
Convert the OGCException
object to XML document string format of exception information.
encode
in interface WMSXMLEncoder
encode
in class WMSXMLEncoder111
exceptions
- OGC exception object array.public java.lang.String getVersion()
Gets the WMS service version.
getVersion
in interface WMSXMLEncoder
getVersion
in class WMSXMLEncoder111