27 #include "../../../common/StringUtils.h" 28 #include "../../../geometry/Geometry.h" 29 #include "../../../geometry/GeometryProperty.h" 30 #include "../../../datatype/DateTimeProperty.h" 31 #include "../../../datatype/DateTime.h" 32 #include "../../../datatype/DateTimeInstant.h" 33 #include "../../../datatype/DateTimePeriod.h" 108 if(rhs.
m_geom.get()!=
nullptr)
109 m_geom.reset(dynamic_cast<te::gm::Geometry*>(rhs.
m_geom.get()->clone()));
127 const std::string& dsName)
273 return m_geom.get()!=
nullptr;
285 return !
m_id.empty();
366 const std::vector<int>&
372 const std::vector<std::string>&
void setSpatialExtent(te::gm::Geometry *se)
It sets the spatial extent of all observations.
void setRsTime(te::dt::DateTimeInstant *t)
It sets the result time associated to all observations.
std::string getBeginTimePropName() const
It returns the name of the DataSet property that contains the phenomenon beginning time...
void setVlTime(te::dt::DateTimePeriod *t)
It sets the valid time associated to all observations.
boost::ptr_vector< te::dt::DateTimeProperty > m_validTimePropInfo
Valid time: information about the DataSet properties that contain the valid time. ...
const te::dt::DateTime * getTime() const
It returns the phenomenon time.
This file contains a class called ObservationDataSetInfo.
bool hasVlTimeProp() const
std::string getObsId() const
It returns the identifier associated to all observations.
const te::dt::DateTimeInstant * getRsTime() const
It returns the result time.
A class that contains infos about a DataSet that contains observations.
const te::gm::Geometry * getSpatialExtent() const
It returns the spatial extent of the observations.
const std::vector< int > & getObsPropIdxs() const
It returns the indexes of the DataSet properties that are observed over time.
std::string getGeomPropName() const
It returns the name of the property that is a geometry property.
te::da::DataSourceInfo m_dsInfo
Information about the DataSource from which the DataSet come.
const te::dt::DateTimePeriod * getVlTime() const
It returns the valid time.
std::string m_dsName
The DataSet name.
bool hasTwoTimeProp() const
std::string Convert2UCase(const std::string &value)
It converts a string to upper case.
bool hasRsTimeProp() const
void setDataSourceInfo(const te::da::DataSourceInfo &dsinfo, const std::string &dsName)
It sets the information about the DataSource and the DataSet name that contains the observations...
bool hasTemporalExtent() const
void setTime(te::dt::DateTime *t)
It sets the phenomenon time associated to all observations.
const te::gm::GeometryProperty * getGeomPropInfo() const
It returns the DataSet property information that contains the geometry.
const te::gm::Geometry * getGeometry() const
It returns the geometry associated to all observations.
std::unique_ptr< te::gm::GeometryProperty > m_geomPropInfo
Geometry: information about the property that has the observation spatial location.
bool hasSpatialExtent() const
std::unique_ptr< te::dt::DateTimePeriod > m_temporalExtent
Temporal extent.
std::unique_ptr< te::dt::DateTime > m_phTime
Phenomenon time: the phenomenon time, when the time is not inside a DataSet.
void setVlTimePropInfo(te::dt::DateTimeProperty *tpInfo)
It sets the property info that contains the valid time.
std::vector< std::string > m_observedPropName
Observed properties: the names of DataSet properties that are observed.
const std::vector< std::string > & getObsPropNames() const
It returns the names of the DataSet properties that are observed over time.
void setIdPropInfo(int idProp)
It sets the index of the DataSet property that contains identifiers that groups the observations...
const te::dt::DateTimeProperty * getVlEndTimePropInfo() const
It returns the DataSet property information that contains the valid end time.
std::unique_ptr< te::dt::DateTimeProperty > m_resultTimePropInfo
Result time: information about the DataSet property that contains the result time.
void setGeometry(te::gm::Geometry *geom)
It sets the geometry associated to all observations.
const te::dt::DateTimeProperty * getBeginTimePropInfo() const
It returns the DataSet property information that contains the phenomenon beginning time...
const te::da::DataSourceInfo & getDataSourceInfo() const
It returns the information about the DataSource.
void setId(const std::string &id)
It sets the identifier associated to all observations.
void setRsTimePropInfo(te::dt::DateTimeProperty *tpInfo)
It sets the property info that contains the result time.
std::string m_idPropName
Id: the name of DataSet property that contain the id of each group of observation.
const te::dt::DateTimeProperty * getVlBeginTimePropInfo() const
It returns the DataSet property information that contains the valid beginning time.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
std::string getDSId() const
It returns an id (as a string) that identifies the DataSet.
bool hasTwoVlTimeProp() const
const te::dt::DateTimePeriod * getTemporalExtent() const
It returns the temporal extent of the observations.
void setTemporalExtent(te::dt::DateTimePeriod *te)
It sets the temporal extent of all observations.
std::unique_ptr< te::gm::Geometry > m_geom
Geometry: the geometry, when the spatial location of the observations are not in the DataSet...
const std::string & getId() const
std::vector< int > m_observedPropIdx
Observed properties: the indexes of DataSet properties that are observed.
const te::dt::DateTimeProperty * getEndTimePropInfo() const
It returns the DataSet property information that contains the phenomenon end time.
std::unique_ptr< te::gm::Geometry > m_spatialExtent
Spatial extent.
virtual ~ObservationDataSetInfo()
Virtual destructor.
int getIdPropIdx() const
It returns the index of the property that contains identifiers that groups observations.
const te::dt::DateTimeProperty * getRsTimePropInfo() const
It returns the DataSet property information that contains the result time.
void setTimePropInfo(te::dt::DateTimeProperty *tpInfo)
It sets the property info that contains the phenomenon time.
An abstract class to represent a period of date and time.
The type for date and time types: date, date period, date duration, time duration, time instant, time period, time instant with time zone or time period with time zone.
std::string m_id
Id: the id associated to all observations.
A class that represents a data source component.
std::string getDataSetName() const
It returns the DataSet name.
std::string getEndTimePropName() const
It returns the name of the DataSet property that contains the phenomenon end time.
void setGeomPropInfo(te::gm::GeometryProperty *prop)
It sets the info about the property that contains the observation location.
void setObsPropInfo(const std::vector< int > &props)
It sets the indexes of the DataSet properties that are observed over time.
std::string getIdPropName() const
It returns the name of the property that contains identifiers that groups observations.
int m_idPropIndex
Id: the index of DataSet property that contain the id of each group of observation.
std::unique_ptr< te::dt::DateTimePeriod > m_validTime
Valid time: the valid time, when the time is not inside a DataSet.
ObservationDataSetInfo(const te::da::DataSourceInfo &dsInfo, const std::string &dsName)
Constructor.
std::unique_ptr< te::dt::DateTimeInstant > m_resultTime
Result time: the result time, when the time is not inside a DataSet.
An abstract class to represent an instant of date and time.
boost::ptr_vector< te::dt::DateTimeProperty > m_phTimePropInfo
Phenomenon time: information about the DataSet properties that contain the phenomenon time...
const ObservationDataSetInfo & operator=(const ObservationDataSetInfo &rhs)
Assignment operator.