Information required to identify a dataset. More...
#include <MD_DataIdentification.h>
Public Member Functions | |
| void | addPointOfContact (CI_ResponsibleParty *p) |
| Adds a point of contact to the resource. More... | |
| MD_Identification * | clone () const |
| Gets a copy of this object. More... | |
| const std::string & | getAbstract () const |
| Returns the resource abstract. More... | |
| const CI_Citation * | getCitation () const |
| Returns the citation for the metadata. More... | |
| const boost::ptr_vector< CI_ResponsibleParty > & | getPointsOfContact () const |
| Returns the resource points of contact. More... | |
| te::md::MD_ProgressCode | getStatus () const |
| Returns the resource status code. More... | |
| MD_DataIdentification (CI_Citation *cite, const std::string &abstract, MD_ProgressCode status, const std::string &lang) | |
| Constructor. More... | |
| ~MD_DataIdentification () | |
| Destructor. More... | |
Accessor methods | |
Methods used to get or set properties. | |
| void | addLanguage (const std::string &lang) |
| Adds a language used within the dataset. More... | |
| const std::vector< std::string > & | getLanguages () const |
| Returns the set of languages associated to the dataset. More... | |
| void | addCharacterSet (MD_CharacterSetCode code) |
| Adds a character coding standard in the dataset. More... | |
| const std::vector< MD_CharacterSetCode > & | getCharsetCodes () const |
| Returns a character coding standard in the dataset. More... | |
| void | addTopicCategory (MD_TopicCategoryCode code) |
| Adds a theme of the dataset. More... | |
| const std::vector< MD_TopicCategoryCode > & | getTopicCategories () const |
| Return the themes associated to the dataset. More... | |
| void | addGeographicBBoxExt (const double &llx, const double &lly, const double &urx, const double &ury, bool isInside=true) |
| Adds the spatial description of the dataset. More... | |
| void | addGeographicBBoxExt (const te::gm::Envelope *bb, bool isInside=true) |
| Adds the spatial description of the dataset. More... | |
| const te::gm::Envelope & | getExtent () const |
| Returns the set of extents for the dataset. More... | |
| bool | dataIsCovered () const |
| Returns true if the bounding polygon encompasses an area covered by the data or false if is an area where data is not present. More... | |
| void | setSpatialRepType (te::md::MD_SpatialRepresentationTypeCode code) |
| Sets the spatial representation type. More... | |
| te::md::MD_SpatialRepresentationTypeCode | getSpatialRepTypeCode () const |
| Returns the spatial representation type. More... | |
| void | setScale (long d) |
| Sets resource scale. The scale of a map or other cartographic object expressed as a fraction or ratio which relates unit distance on the map or other cartographic object to distance, measured in the same units, on the ground. More... | |
| long | getScale () const |
| Returns the scale information. If equal to 0 the denominator is not valid. More... | |
Protected Attributes | |
| std::string | m_abstract |
| CI_Citation * | m_citation |
| boost::ptr_vector< CI_ResponsibleParty > | m_poc |
| te::md::MD_ProgressCode | m_status |
Private Attributes | |
| std::vector< MD_CharacterSetCode > | m_charSet |
| bool | m_dataIsCovered |
| te::gm::Envelope | m_extent |
| std::vector< std::string > | m_language |
| long | m_scale |
| te::md::MD_SpatialRepresentationTypeCode | m_spatialRepresentationType |
| std::vector< MD_TopicCategoryCode > | m_topicCategory |
Information required to identify a dataset.
Definition at line 52 of file MD_DataIdentification.h.
| te::md::MD_DataIdentification::MD_DataIdentification | ( | CI_Citation * | cite, |
| const std::string & | abstract, | ||
| MD_ProgressCode | status, | ||
| const std::string & | lang | ||
| ) |
Constructor.
| citation | Pointer to the citation to the resource. Class takes ownership. Do not pass null. |
| abstract | Brief narrative summary of the resource. |
| status | The development phase of the resource. |
| lang | A language used within the dataset. using standard ISO three-letter codes. Do not pass empty. |
Definition at line 27 of file MD_DataIdentification.cpp.
References m_language, and ~MD_DataIdentification().
Referenced by clone().
|
default |
Destructor.
Referenced by MD_DataIdentification().
| void te::md::MD_DataIdentification::addCharacterSet | ( | MD_CharacterSetCode | code | ) |
Adds a character coding standard in the dataset.
Definition at line 51 of file MD_DataIdentification.cpp.
References m_charSet.
Referenced by clone().
| void te::md::MD_DataIdentification::addGeographicBBoxExt | ( | const double & | llx, |
| const double & | lly, | ||
| const double & | urx, | ||
| const double & | ury, | ||
| bool | isInside = true |
||
| ) |
Adds the spatial description of the dataset.
| llx | Westernmost coordinate of the limit of the dataset extent, expressed in longitude in decimal degrees. |
| lly | Southernmost coordinate of the limit of the dataset extent, expressed in latitude in decimal degrees. |
| urx | Easternmost coordinate of the limit of the dataset extent, expressed in longitude in decimal degrees. |
| lly | Northernmost coordinate of the limit of the dataset extent, expressed in latitude in decimal degrees. |
| isInside | True if the bounding polygon encompasses an area covered by the data or false if an area where data is not present. Default true. |
Definition at line 75 of file MD_DataIdentification.cpp.
References dataIsCovered(), te::gm::Envelope::init(), m_dataIsCovered, and m_extent.
Referenced by clone().
| void te::md::MD_DataIdentification::addGeographicBBoxExt | ( | const te::gm::Envelope * | bb, |
| bool | isInside = true |
||
| ) |
Adds the spatial description of the dataset.
| bbx | Pointer to the enclosing boounding box. Do not pass null. |
| isInside | True if the bounding polygon encompasses an area covered by the data or false if an area where data is not present. Default true. |
Definition at line 83 of file MD_DataIdentification.cpp.
References te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::Envelope::init(), and m_extent.
| void te::md::MD_DataIdentification::addLanguage | ( | const std::string & | lang | ) |
Adds a language used within the dataset.
| lang | Language description using standard ISO three-letter codes. Do not pass empty string. |
Definition at line 39 of file MD_DataIdentification.cpp.
References m_language.
|
inherited |
Adds a point of contact to the resource.
| poc | Pointer to a responsible party. Class takes pointer ownership. Do not pass null. |
Definition at line 67 of file MD_Identification.cpp.
References te::md::MD_Identification::m_poc.
| void te::md::MD_DataIdentification::addTopicCategory | ( | MD_TopicCategoryCode | code | ) |
Adds a theme of the dataset.
Definition at line 63 of file MD_DataIdentification.cpp.
References m_topicCategory.
Referenced by clone().
|
virtual |
Gets a copy of this object.
Reimplemented from te::md::MD_Identification.
Definition at line 125 of file MD_DataIdentification.cpp.
References addCharacterSet(), addGeographicBBoxExt(), addTopicCategory(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::md::MD_Identification::m_abstract, m_charSet, te::md::MD_Identification::m_citation, m_dataIsCovered, m_extent, m_language, m_spatialRepresentationType, te::md::MD_Identification::m_status, m_topicCategory, MD_DataIdentification(), and setSpatialRepType().
| bool te::md::MD_DataIdentification::dataIsCovered | ( | ) | const |
Returns true if the bounding polygon encompasses an area covered by the data or false if is an area where data is not present.
Referenced by addGeographicBBoxExt().
|
inherited |
Returns the resource abstract.
Definition at line 55 of file MD_Identification.cpp.
References te::md::MD_Identification::m_abstract.
| const std::vector< te::md::MD_CharacterSetCode > & te::md::MD_DataIdentification::getCharsetCodes | ( | ) | const |
Returns a character coding standard in the dataset.
Definition at line 57 of file MD_DataIdentification.cpp.
References m_charSet.
Referenced by te::md::Save().
|
inherited |
Returns the citation for the metadata.
Definition at line 48 of file MD_Identification.cpp.
References te::md::MD_Identification::m_citation.
| const te::gm::Envelope & te::md::MD_DataIdentification::getExtent | ( | ) | const |
Returns the set of extents for the dataset.
Definition at line 92 of file MD_DataIdentification.cpp.
References m_extent.
Referenced by te::md::Save().
| const std::vector< std::string > & te::md::MD_DataIdentification::getLanguages | ( | ) | const |
Returns the set of languages associated to the dataset.
Definition at line 45 of file MD_DataIdentification.cpp.
References m_language.
Referenced by te::md::Save().
|
inherited |
Returns the resource points of contact.
Definition at line 75 of file MD_Identification.cpp.
References te::md::MD_Identification::m_poc.
| long te::md::MD_DataIdentification::getScale | ( | ) | const |
Returns the scale information. If equal to 0 the denominator is not valid.
Definition at line 120 of file MD_DataIdentification.cpp.
References m_scale.
Referenced by te::md::Save().
| te::md::MD_SpatialRepresentationTypeCode te::md::MD_DataIdentification::getSpatialRepTypeCode | ( | ) | const |
Returns the spatial representation type.
Definition at line 105 of file MD_DataIdentification.cpp.
References m_spatialRepresentationType.
Referenced by te::md::Save().
|
inherited |
Returns the resource status code.
Definition at line 61 of file MD_Identification.cpp.
References te::md::MD_Identification::m_status.
| const std::vector< te::md::MD_TopicCategoryCode > & te::md::MD_DataIdentification::getTopicCategories | ( | ) | const |
Return the themes associated to the dataset.
Definition at line 69 of file MD_DataIdentification.cpp.
References m_topicCategory.
Referenced by te::md::Save().
| void te::md::MD_DataIdentification::setScale | ( | long | d | ) |
Sets resource scale. The scale of a map or other cartographic object expressed as a fraction or ratio which relates unit distance on the map or other cartographic object to distance, measured in the same units, on the ground.
| d | The scale denominator. Do not pass <= 0; |
Definition at line 112 of file MD_DataIdentification.cpp.
| void te::md::MD_DataIdentification::setSpatialRepType | ( | te::md::MD_SpatialRepresentationTypeCode | code | ) |
Sets the spatial representation type.
Definition at line 99 of file MD_DataIdentification.cpp.
References m_spatialRepresentationType.
Referenced by clone().
|
protectedinherited |
Definition at line 92 of file MD_Identification.h.
Referenced by te::md::MD_Identification::clone(), clone(), and te::md::MD_Identification::getAbstract().
|
private |
Definition at line 142 of file MD_DataIdentification.h.
Referenced by addCharacterSet(), clone(), and getCharsetCodes().
|
protectedinherited |
Definition at line 91 of file MD_Identification.h.
Referenced by te::md::MD_Identification::clone(), clone(), te::md::MD_Identification::getCitation(), te::md::MD_Identification::MD_Identification(), and te::md::MD_Identification::~MD_Identification().
|
private |
Definition at line 145 of file MD_DataIdentification.h.
Referenced by addGeographicBBoxExt(), and clone().
|
private |
Definition at line 144 of file MD_DataIdentification.h.
Referenced by addGeographicBBoxExt(), clone(), and getExtent().
|
private |
Definition at line 141 of file MD_DataIdentification.h.
Referenced by addLanguage(), clone(), getLanguages(), and MD_DataIdentification().
|
protectedinherited |
Definition at line 94 of file MD_Identification.h.
Referenced by te::md::MD_Identification::addPointOfContact(), te::md::MD_Identification::clone(), and te::md::MD_Identification::getPointsOfContact().
|
private |
Definition at line 147 of file MD_DataIdentification.h.
Referenced by getScale(), and setScale().
|
private |
Definition at line 146 of file MD_DataIdentification.h.
Referenced by clone(), getSpatialRepTypeCode(), and setSpatialRepType().
|
protectedinherited |
Definition at line 93 of file MD_Identification.h.
Referenced by te::md::MD_Identification::clone(), clone(), and te::md::MD_Identification::getStatus().
|
private |
Definition at line 143 of file MD_DataIdentification.h.
Referenced by addTopicCategory(), clone(), and getTopicCategories().