OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Protected Attributes | List of all members
ossimWmsBoundingBox Class Reference

#include <ossimWms.h>

Inheritance diagram for ossimWmsBoundingBox:
ossimReferenced

Public Member Functions

 ossimWmsBoundingBox ()
 
virtual bool read (ossimRefPtr< ossimXmlNode > node)
 
void clearFields ()
 
bool isGeographic () const
 
const ossimStringgetSrs () const
 
double getMinX () const
 
double getMinY () const
 
double getMaxX () const
 
double getMaxY () const
 
- Public Member Functions inherited from ossimReferenced
 ossimReferenced ()
 
 ossimReferenced (const ossimReferenced &)
 
ossimReferencedoperator= (const ossimReferenced &)
 
void ref () const
 increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unref () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unref_nodelete () const
 decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
int referenceCount () const
 

Protected Attributes

ossimString theSrs
 
double theMinX
 
double theMinY
 
double theMaxX
 
double theMaxY
 

Additional Inherited Members

- Protected Member Functions inherited from ossimReferenced
virtual ~ossimReferenced ()
 

Detailed Description

Definition at line 273 of file ossimWms.h.

Constructor & Destructor Documentation

◆ ossimWmsBoundingBox()

ossimWmsBoundingBox::ossimWmsBoundingBox ( )
inline

Definition at line 276 of file ossimWms.h.

277  {
278  }

Member Function Documentation

◆ clearFields()

void ossimWmsBoundingBox::clearFields ( )
inline

Definition at line 280 of file ossimWms.h.

281  {
282  theSrs = "";
283  theMinX = 0.0;
284  theMinY = 0.0;
285  theMaxX = 0.0;
286  theMaxY = 0.0;
287  }
ossimString theSrs
Definition: ossimWms.h:313

◆ getMaxX()

double ossimWmsBoundingBox::getMaxX ( ) const
inline

Definition at line 304 of file ossimWms.h.

305  {
306  return theMaxX;
307  }

◆ getMaxY()

double ossimWmsBoundingBox::getMaxY ( ) const
inline

Definition at line 308 of file ossimWms.h.

309  {
310  return theMaxY;
311  }

◆ getMinX()

double ossimWmsBoundingBox::getMinX ( ) const
inline

Definition at line 296 of file ossimWms.h.

297  {
298  return theMinX;
299  }

◆ getMinY()

double ossimWmsBoundingBox::getMinY ( ) const
inline

Definition at line 300 of file ossimWms.h.

301  {
302  return theMinY;
303  }

◆ getSrs()

const ossimString& ossimWmsBoundingBox::getSrs ( ) const
inline

Definition at line 292 of file ossimWms.h.

293  {
294  return theSrs;
295  }
ossimString theSrs
Definition: ossimWms.h:313

◆ isGeographic()

bool ossimWmsBoundingBox::isGeographic ( ) const
inline

Definition at line 288 of file ossimWms.h.

289  {
290  return theSrs.contains("4326");
291  }
bool contains(char aChar) const
Definition: ossimString.h:58
ossimString theSrs
Definition: ossimWms.h:313

◆ read()

bool ossimWmsBoundingBox::read ( ossimRefPtr< ossimXmlNode node)
virtual

Definition at line 199 of file ossimWms.cpp.

References ossimXmlNode::getAttributeValue(), ossimXmlNode::getTag(), theMaxX, theMaxY, theMinX, theMinY, theSrs, and ossimString::toDouble().

Referenced by ossimWmsLayer::read().

200 {
201  ossimString minx, miny, maxx, maxy;
202 
203  bool result = (node->getAttributeValue(minx, "minx")&&
204  node->getAttributeValue(miny, "miny")&&
205  node->getAttributeValue(maxx, "maxx")&&
206  node->getAttributeValue(maxy, "maxy"));
207 
208  node->getAttributeValue(theSrs, "SRS");
209 
210  if(node->getTag() == "LatLonBoundingBox")
211  {
212  theSrs = "EPSG:4326";
213  }
214 
215  theMinX = minx.toDouble();
216  theMinY = miny.toDouble();
217  theMaxX = maxx.toDouble();
218  theMaxY = maxy.toDouble();
219 
220  return result;
221 }
ossimString const & getTag() const
Definition: ossimXmlNode.h:53
bool getAttributeValue(ossimString &value, const ossimString &name) const
double toDouble() const
ossimString theSrs
Definition: ossimWms.h:313

Member Data Documentation

◆ theMaxX

double ossimWmsBoundingBox::theMaxX
protected

Definition at line 316 of file ossimWms.h.

Referenced by read().

◆ theMaxY

double ossimWmsBoundingBox::theMaxY
protected

Definition at line 317 of file ossimWms.h.

Referenced by read().

◆ theMinX

double ossimWmsBoundingBox::theMinX
protected

Definition at line 314 of file ossimWms.h.

Referenced by read().

◆ theMinY

double ossimWmsBoundingBox::theMinY
protected

Definition at line 315 of file ossimWms.h.

Referenced by read().

◆ theSrs

ossimString ossimWmsBoundingBox::theSrs
protected

Definition at line 313 of file ossimWms.h.

Referenced by read().


The documentation for this class was generated from the following files: