12 #include "boost/date_time/gregorian/gregorian.hpp" 73 boost::gregorian::date d1(boost::gregorian::greg_year(2010),boost::gregorian::greg_month(1),15);
83 dsItem02->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime1->
clone()));
90 dsItem03->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime1->
clone()));
93 boost::gregorian::date d2(boost::gregorian::greg_year(2010),boost::gregorian::greg_month(2),15);
107 dsItem05->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime2->
clone()));
114 dsItem06->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime2->
clone()));
117 boost::gregorian::date d3(boost::gregorian::greg_year(2010),boost::gregorian::greg_month(3),15);
131 dsItem08->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime3->
clone()));
138 dsItem09->
setDateTime(3, static_cast<te::dt::DateTime*>(datetime3->
clone()));
155 catch(
const std::exception& e)
157 std::cout << std::endl <<
"An exception has occurred when Creating DataSet In Memory Example: " << e.what() << std::endl;
162 std::cout << std::endl <<
"An unexpected exception has occurred when Creating DataSet In Memory Example!" << std::endl;
void setGeometry(std::size_t i, te::gm::Geometry *value)
It sets the value of the i-th property.
This file contains include headers for the memory data source of TerraLib.
A class that models the description of a dataset.
static te::dt::Date ds(2010, 01, 01)
te::da::DataSet * CreatingDataSetInMemoryGivingDt(te::da::DataSetType *dt)
void setNumeric(std::size_t i, const std::string &value)
It sets the value of the i-th property.
void add(DataSetItem *item)
It adds a new item to the dataset and takes its ownership.
void setInt32(std::size_t i, boost::int32_t value)
It sets the value of the i-th property.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
A point with x and y coordinate values.
A base class for date data types.
void setDateTime(std::size_t i, te::dt::DateTime *value)
It sets the value of the i-th property.
Examples on how to access/manipulate DataSources in TerraLib.
static te::dt::TimeDuration dt(20, 30, 50, 11)
virtual AbstractData * clone() const =0
It returns a clone of this object.
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
A dataset is the unit of information manipulated by the data access module of TerraLib.
A base class for date data types.