public interface WMSXMLEncoder
WMS XML document encoder.
Convert the relevent WMS objects of SuperMap iServer to the XML document of WMS service based on OGC standard.
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 |
encode(WMSCapabilities capabilities)
Construct the
WMSCapabilities object to Capabilities XML document string format of WMS service. |
java.lang.String |
encode(WMSFeatureInfo[] featureInfos, java.lang.String format)
Construct the
WMSFeatureInfo object to XML document string format of GetFeatureInfo operation. |
java.lang.String |
getCapabilitiesDTDOrXSD()
Get the DTD or XSD document address of the Capabilities XML document.
|
java.lang.String |
getExceptionDTDOrXSD()
Get the DTD or XSD document address of the exception information XML document.
|
java.lang.String |
getFeatureDTDOrXSD()
Get DTD or XSD document address in the XML document of the GetFeatureInfo operation response.
|
java.lang.String |
getVersion()
Gets the WMS service version.
|
void |
setCapabilitiesDTDOrXSD(java.lang.String url)
Set the DTD or XSD document of the Capabilities XML document.
|
void |
setExceptionDTDOrXSD(java.lang.String url)
Set the DTD or XSD document address of the exception XML document.
|
void |
setFeatureDTDOrXSD(java.lang.String url)
Set DTD or XSD document address in the XML document of the GetFeatureInfo operation response.
|
void |
setProviderUrl(java.lang.String providerurl)
Online resource URL.
|
void setProviderUrl(java.lang.String providerurl)
Online resource URL.
The URL is a URL prefix, which is an opaque string, including protocol, host name, port number (optional), path, English mark ("?"), and one or more parameters defined by server (optional), where the parameter uses"&" at the end.
In the XML document of WMS, the field value is recorded in the xlink:href property of the OnlineResource element.
providerurl
- URL of WMS service.java.lang.String encode(WMSCapabilities capabilities)
WMSCapabilities
object to Capabilities XML document string format of WMS service.capabilities
- WMSCapabilities object.java.lang.String encode(WMSFeatureInfo[] featureInfos, java.lang.String format)
WMSFeatureInfo
object to XML document string format of GetFeatureInfo operation.featureInfos
- WMSFeatureInfo object array.java.lang.String encode(OGCException[] exceptions)
OGCException
object to XML document string format of exception information.exceptions
- exception object array.java.lang.String getVersion()
void setCapabilitiesDTDOrXSD(java.lang.String url)
url
- the DTD or XSD document address.java.lang.String getCapabilitiesDTDOrXSD()
void setExceptionDTDOrXSD(java.lang.String url)
url
- the DTD or XSD document address.java.lang.String getExceptionDTDOrXSD()
void setFeatureDTDOrXSD(java.lang.String url)
url
- the DTD or XSD document address.java.lang.String getFeatureDTDOrXSD()