27 #include "../../../xml/AbstractWriter.h"
28 #include "../../../xml/Reader.h"
29 #include "../../../xml/ReaderFactory.h"
30 #include "../../Envelope.h"
31 #include "../../Exception.h"
49 return std::auto_ptr<te::gm::Envelope>(
new te::gm::Envelope(llx, lly, urx, ury));
This class models a XML reader object.
virtual void writeStartElement(const std::string &qName)=0
double m_urx
Upper right corner x-coordinate.
This class models a XML writer object.
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
double m_llx
Lower left corner x-coordinate.
An Envelope defines a 2D rectangular region.
Auxiliary classes and functions to read geometry information from a XML document. ...
TEGEOMEXPORT std::auto_ptr< te::gm::Envelope > ReadExtent(te::xml::Reader &reader)
TEGEOMEXPORT void SaveExtent(const te::gm::Envelope &e, te::xml::AbstractWriter &writer)
double m_lly
Lower left corner y-coordinate.
virtual void writeAttribute(const std::string &attName, const std::string &value)=0
double m_ury
Upper right corner y-coordinate.
virtual NodeType getNodeType() const =0
It return the type of node read.
virtual double getAttrAsDouble(const std::string &name) const
It returns the attribute value in the case of an element node with valid attributes.
virtual void writeEndElement(const std::string &qName)=0
virtual bool next()=0
It gets the next event to be read.