|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimShapeFile.h>
Public Member Functions | |
| ossimShapeFile () | |
| virtual | ~ossimShapeFile () |
| virtual bool | open (const ossimFilename &file, const ossimString &flags=ossimString("rb")) |
| virtual void | close () |
| bool | isOpen () const |
| virtual SHPHandle | getHandle () |
| virtual const SHPHandle & | getHandle () const |
| virtual std::ostream & | print (std::ostream &out) const |
| Generic print method. More... | |
| virtual ossimString | getShapeTypeString () const |
| virtual long | getNumberOfShapes () const |
| void | getBounds (double &minX, double &minY, double &minZ, double &minM, double &maxX, double &maxY, double &maxZ, double &maxM) const |
| void | getBounds (double &minX, double &minY, double &maxX, double &maxY) const |
| void | getBoundingRect (ossimDrect &result, ossimCoordSysOrientMode orient=OSSIM_RIGHT_HANDED) const |
| ossimDrect | getBoundingRect (ossimCoordSysOrientMode orient=OSSIM_RIGHT_HANDED) const |
| const ossimFilename & | getFilename () const |
Public Member Functions inherited from ossimObject | |
| ossimObject () | |
| virtual | ~ossimObject () |
| virtual ossimObject * | dup () const |
| virtual ossimString | getShortName () const |
| virtual ossimString | getLongName () const |
| virtual ossimString | getDescription () const |
| virtual ossimString | getClassName () const |
| virtual RTTItypeid | getType () const |
| virtual bool | canCastTo (ossimObject *obj) const |
| virtual bool | canCastTo (const RTTItypeid &id) const |
| virtual bool | canCastTo (const ossimString &parentClassName) const |
| virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=0) const |
| virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=0) |
| virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
| virtual void | accept (ossimVisitor &visitor) |
Public Member Functions inherited from ossimReferenced | |
| ossimReferenced () | |
| ossimReferenced (const ossimReferenced &) | |
| ossimReferenced & | operator= (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 | |
| SHPHandle | theHandle |
| ossimFilename | theFilename |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ossimShapeFile &rhs) |
Additional Inherited Members | |
Protected Member Functions inherited from ossimReferenced | |
| virtual | ~ossimReferenced () |
Definition at line 77 of file ossimShapeFile.h.
| ossimShapeFile::ossimShapeFile | ( | ) |
Definition at line 314 of file ossimShapeFile.cpp.
|
virtual |
Definition at line 319 of file ossimShapeFile.cpp.
References close().
|
virtual |
Definition at line 324 of file ossimShapeFile.cpp.
References SHPClose(), and theHandle.
Referenced by open(), and ~ossimShapeFile().
| void ossimShapeFile::getBoundingRect | ( | ossimDrect & | result, |
| ossimCoordSysOrientMode | orient = OSSIM_RIGHT_HANDED |
||
| ) | const |
Definition at line 454 of file ossimShapeFile.cpp.
References getBounds(), and OSSIM_RIGHT_HANDED.
Referenced by getBoundingRect().
| ossimDrect ossimShapeFile::getBoundingRect | ( | ossimCoordSysOrientMode | orient = OSSIM_RIGHT_HANDED | ) | const |
Definition at line 470 of file ossimShapeFile.cpp.
References getBoundingRect().
| void ossimShapeFile::getBounds | ( | double & | minX, |
| double & | minY, | ||
| double & | minZ, | ||
| double & | minM, | ||
| double & | maxX, | ||
| double & | maxY, | ||
| double & | maxZ, | ||
| double & | maxM | ||
| ) | const |
Definition at line 372 of file ossimShapeFile.cpp.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, ossim::nan(), and theHandle.
Referenced by getBoundingRect(), and ossimEsriShapeFileFilter::loadShapeFile().
| void ossimShapeFile::getBounds | ( | double & | minX, |
| double & | minY, | ||
| double & | maxX, | ||
| double & | maxY | ||
| ) | const |
Definition at line 394 of file ossimShapeFile.cpp.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, ossim::nan(), and theHandle.
| const ossimFilename & ossimShapeFile::getFilename | ( | ) | const |
Definition at line 480 of file ossimShapeFile.cpp.
References theFilename.
Referenced by ossimEsriShapeFileFilter::saveState().
|
virtual |
Definition at line 353 of file ossimShapeFile.cpp.
References theHandle.
Referenced by ossimShapeObject::loadShape(), and ossimEsriShapeFileFilter::loadShapeFile().
|
virtual |
|
virtual |
Definition at line 363 of file ossimShapeFile.cpp.
References SHPInfo::nRecords, and theHandle.
Referenced by ossimEsriShapeFileFilter::loadShapeFile().
|
virtual |
Definition at line 445 of file ossimShapeFile.cpp.
References SHPInfo::nShapeType, SHPTypeName(), and theHandle.
Referenced by print().
| bool ossimShapeFile::isOpen | ( | ) | const |
Definition at line 348 of file ossimShapeFile.cpp.
References theHandle.
Referenced by ossimEsriShapeFileFilter::drawAnnotations(), ossimShapeObject::loadShape(), ossimEsriShapeFileFilter::loadShapeFile(), open(), and print().
|
virtual |
Definition at line 333 of file ossimShapeFile.cpp.
References ossimString::c_str(), close(), isOpen(), SHPOpen(), theFilename, and theHandle.
Referenced by ossimEsriShapeFileFilter::loadShapeFile().
|
virtual |
Generic print method.
Derived classes should re-implement as they see fit.
Reimplemented from ossimObject.
Definition at line 410 of file ossimShapeFile.cpp.
References SHPInfo::adBoundsMax, SHPInfo::adBoundsMin, ossimString::c_str(), getShapeTypeString(), isOpen(), ossimShapeObject::loadShape(), SHPInfo::nRecords, theFilename, and theHandle.
Referenced by operator<<().
|
friend |
Definition at line 306 of file ossimShapeFile.cpp.
|
protected |
Definition at line 119 of file ossimShapeFile.h.
Referenced by getFilename(), open(), and print().
|
protected |
Definition at line 118 of file ossimShapeFile.h.
Referenced by close(), getBounds(), getHandle(), getNumberOfShapes(), getShapeTypeString(), isOpen(), open(), and print().
1.8.14