A class responsible to parse WMS XML files to WMS TerraLib data types. More...
#include <XMLParser.h>
Public Member Functions | |
| std::string | getVersion () |
| virtual BoundingBox | parseBoundingBox (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual WMSCapabilities | parseCapabilities (const std::string &xmlPath) |
| Method responsible to parse a WMS XML GetCapabilities file and create an WMSCapabilities instance with document metadata. More... | |
| virtual Capability | parseCapability (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual Dimension | parseDimension (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual GeographicBoundingBox | parseGeographicBoundingBox (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual HTTP | parseHTTP (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual Layer | parseLayers (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual LegendURL | parseLegendURL (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual OnlineResource | parseOnlineResource (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual Operation | parseOperation (const std::unique_ptr< te::xml::Reader > &reader, const std::string &operationName) |
| virtual Request | parseRequest (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual Style | parseStyle (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual StyleSheetURL | parseStyleSheetURL (const std::unique_ptr< te::xml::Reader > &reader) |
| virtual StyleURL | parseStyleURL (const std::unique_ptr< te::xml::Reader > &reader) |
| XMLParser () | |
| virtual | ~XMLParser () |
Protected Attributes | |
| std::string | m_version |
| WMS version that XMLParser instance could read. Default implementation is 1.3.0. More... | |
A class responsible to parse WMS XML files to WMS TerraLib data types.
Definition at line 42 of file wms/client/XMLParser.h.
| te::ws::ogc::wms::XMLParser::XMLParser | ( | ) |
Definition at line 31 of file wms/client/XMLParser.cpp.
References ~XMLParser().
|
virtualdefault |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Referenced by XMLParser().
| std::string te::ws::ogc::wms::XMLParser::getVersion | ( | ) |
|
virtual |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Definition at line 231 of file wms/client/XMLParser.cpp.
References te::ws::core::IsInvertedEPSG(), te::ws::ogc::wms::BoundingBox::m_crs, te::ws::ogc::wms::BoundingBox::m_maxX, te::ws::ogc::wms::BoundingBox::m_maxY, te::ws::ogc::wms::BoundingBox::m_minX, and te::ws::ogc::wms::BoundingBox::m_minY.
Referenced by parseLayers().
|
virtual |
Method responsible to parse a WMS XML GetCapabilities file and create an WMSCapabilities instance with document metadata.
| xmlPath | path of the file that will be parsed. |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Definition at line 38 of file wms/client/XMLParser.cpp.
References capabilities, te::ws::ogc::wms::WMSCapabilities::m_capability, te::xml::ReaderFactory::make(), parseCapability(), and TE_TR.
|
virtual |
Definition at line 74 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Capability::m_layer, te::ws::ogc::wms::Capability::m_request, parseLayers(), and parseRequest().
Referenced by parseCapabilities(), and te::ws::ogc::wms::version_1_1_1::XMLParser::parseCapabilities().
|
virtual |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Definition at line 257 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Dimension::m_allowedValues, te::ws::ogc::wms::Dimension::m_current, te::ws::ogc::wms::Dimension::m_default, te::ws::ogc::wms::Dimension::m_multipleValues, te::ws::ogc::wms::Dimension::m_name, te::ws::ogc::wms::Dimension::m_nearestValue, te::ws::ogc::wms::Dimension::m_units, te::ws::ogc::wms::Dimension::m_unitSymbol, te::common::SplitString(), and te::xml::VALUE.
Referenced by parseLayers().
|
virtual |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Definition at line 209 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::GeographicBoundingBox::m_eastBoundLongitude, te::ws::ogc::wms::GeographicBoundingBox::m_northBoundLatitude, te::ws::ogc::wms::GeographicBoundingBox::m_southBoundLatitude, te::ws::ogc::wms::GeographicBoundingBox::m_westBoundLongitude, and te::xml::VALUE.
Referenced by parseLayers().
|
virtual |
Definition at line 440 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::HTTP::m_get, te::ws::ogc::wms::HTTP::m_post, parseOnlineResource(), and te::xml::START_ELEMENT.
Referenced by parseOperation().
|
virtual |
Reimplemented in te::ws::ogc::wms::version_1_1_1::XMLParser.
Definition at line 117 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Layer::m_abstract, te::ws::ogc::wms::Layer::m_boundingBoxes, te::ws::ogc::wms::Layer::m_cascaded, te::ws::ogc::wms::Layer::m_crs, te::ws::ogc::wms::Layer::m_dimensions, te::ws::ogc::wms::Layer::m_fixedHeight, te::ws::ogc::wms::Layer::m_fixedWidth, te::ws::ogc::wms::Layer::m_geoBoundingBox, te::ws::ogc::wms::Layer::m_keywordList, te::ws::ogc::wms::Layer::m_layers, te::ws::ogc::wms::Layer::m_maxScaleDenominator, te::ws::ogc::wms::Layer::m_minScaleDenominator, te::ws::ogc::wms::Layer::m_name, te::ws::ogc::wms::Layer::m_noSubsets, te::ws::ogc::wms::Layer::m_opaque, te::ws::ogc::wms::Layer::m_queryable, te::ws::ogc::wms::Layer::m_styles, te::ws::ogc::wms::Layer::m_title, parseBoundingBox(), parseDimension(), parseGeographicBoundingBox(), parseStyle(), te::xml::START_ELEMENT, and te::xml::VALUE.
Referenced by parseCapability().
|
virtual |
Definition at line 332 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::LegendURL::m_format, te::ws::ogc::wms::LegendURL::m_height, te::ws::ogc::wms::LegendURL::m_onlineResource, te::ws::ogc::wms::LegendURL::m_width, parseOnlineResource(), and te::xml::VALUE.
Referenced by parseStyle().
|
virtual |
Definition at line 362 of file wms/client/XMLParser.cpp.
References te::ws::ogc::wms::OnlineResource::m_href, and te::ws::ogc::wms::OnlineResource::m_type.
Referenced by parseHTTP(), parseLegendURL(), parseStyleSheetURL(), and parseStyleURL().
|
virtual |
Definition at line 415 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Operation::m_dcps, te::ws::ogc::wms::Operation::m_formats, parseHTTP(), te::xml::START_ELEMENT, and te::xml::VALUE.
Referenced by parseRequest().
|
virtual |
Definition at line 93 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Request::m_getCapabilities, te::ws::ogc::wms::Request::m_getFeatureInfo, te::ws::ogc::wms::Request::m_getMap, parseOperation(), and request.
Referenced by parseCapability().
|
virtual |
Definition at line 297 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::Style::m_abstract, te::ws::ogc::wms::Style::m_legendURL, te::ws::ogc::wms::Style::m_name, te::ws::ogc::wms::Style::m_styleSheetURL, te::ws::ogc::wms::Style::m_styleURL, te::ws::ogc::wms::Style::m_title, parseLegendURL(), parseStyleSheetURL(), parseStyleURL(), te::xml::START_ELEMENT, and te::xml::VALUE.
Referenced by parseLayers(), and te::ws::ogc::wms::version_1_1_1::XMLParser::parseLayers().
|
virtual |
Definition at line 377 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::StyleSheetURL::m_format, te::ws::ogc::wms::StyleSheetURL::m_onlineResource, parseOnlineResource(), and te::xml::VALUE.
Referenced by parseStyle().
|
virtual |
Definition at line 396 of file wms/client/XMLParser.cpp.
References te::xml::END_ELEMENT, te::ws::ogc::wms::StyleURL::m_format, te::ws::ogc::wms::StyleURL::m_onlineResource, parseOnlineResource(), and te::xml::VALUE.
Referenced by parseStyle().
|
protected |
WMS version that XMLParser instance could read. Default implementation is 1.3.0.
Definition at line 90 of file wms/client/XMLParser.h.
Referenced by te::ws::ogc::wms::version_1_1_1::XMLParser::XMLParser().