Class AbstractParser
java.lang.Object
com.vividsolutions.wms.AbstractParser
- All Implemented Interfaces:
IParser
- Direct Known Subclasses:
ParserWMS1_0, ParserWMS1_1, ParserWMS1_3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSRSNode(Node n, List<String> srsList) protected BoundingBoxprotected voiddoubleCoordinates in subelements westBoundLongitude, southBoundLongitude...doublegetCoord(String name, NamedNodeMap nm) Coordinates in attributes minx, miny, maxx, maxyprotected LinkedList<String> getFormatList(Document doc) protected LinkedList<String> getInfoFormats(Document doc) protected abstract Stringprotected abstract Stringprotected Stringprotected Stringprotected BoundingBoxparseCapabilities(WMService service, InputStream inStream) Parses the WMT_MS_Capabilities XML from the given InputStream into a Capabilities object.protected abstract CapabilitiesparseCapabilities(WMService service, Document doc) wmsLayerFromNode(Node layerNode) Traverses the DOM tree underneath the specified Node and generates a corresponding WMSLayer object tree.
-
Constructor Details
-
AbstractParser
public AbstractParser()Creates a Parser for dealing with WMS XML.
-
-
Method Details
-
parseCapabilities
Parses the WMT_MS_Capabilities XML from the given InputStream into a Capabilities object.- Specified by:
parseCapabilitiesin interfaceIParser- Parameters:
service- the WMService from which this MapDescriptor is derivedinStream- the inputStream containing the WMT_MS_Capabilities XML to parse- Returns:
- the MapDescriptor object created from the specified XML InputStream
- Throws:
IOException
-
getRootPath
-
checkCapabilities
- Throws:
IOException
-
parseCapabilities
protected abstract Capabilities parseCapabilities(WMService service, Document doc) throws IOException - Throws:
IOException
-
getTitlePath
-
getTitle
- Throws:
IOException
-
getFormatList
- Throws:
IOException
-
getInfoFormats
-
wmsLayerFromNode
Traverses the DOM tree underneath the specified Node and generates a corresponding WMSLayer object tree. The returned WMSLayer will be set to have the specified parent.- Parameters:
layerNode- a DOM Node which is aXML element - Returns:
- a WMSLayer with complete subLayer tree that corresponds to the DOM Node provided
-
addSRSNode
-
boundingBoxFromNode
- Throws:
Exception
-
latLonBoundingBoxFromNode
- Throws:
Exception
-
exGeographicBoundingBoxFromNode
- Throws:
Exception
-
getCoord
Coordinates in attributes minx, miny, maxx, maxy- Throws:
Exception
-
getCoord
-
getSRSName
-