29 #include "../../common/Exception.h"
30 #include "../../common/Translator.h"
31 #include "../../common/progress/TaskProgress.h"
32 #include "../../datatype/SimpleProperty.h"
33 #include "../../geometry/Geometry.h"
34 #include "../../geometry/GeometryProperty.h"
35 #include "../../memory/DataSet.h"
36 #include "../../memory/DataSetItem.h"
60 dsType->add(idProperty);
64 dsType->add(geomProperty);
68 pkName+=
"_" + m_outputDataSetName;
85 for(
int i = 0; i < m_nPoints; ++i)
void setMessage(const std::string &message)
Set the task message.
void add(te::dt::Property *p)
It adds a property to the list of properties of the primary key.
void setGeometry(std::size_t i, te::gm::Geometry *value)
It sets the value of the i-th property.
virtual ~SamplePointsGeneratorRandom()
Virtual destructor.
An atomic property like an integer or double.
te::sa::SamplePointsGeneratorType m_type
Generator Type.
A class that models the description of a dataset.
virtual std::auto_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)
This class can be used to inform the progress of a task.
#define TE_TR(message)
It marks a string in order to get translated.
This file contains a class to generate samples points using random strategy.
bool isActive() const
Verify if the task is active.
void setTotalSteps(int value)
Set the task total stepes.
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...
#define TE_SA_SPG_ATTR_GEOM_NAME
SamplePointsGeneratorRandom()
Default constructor.
void pulse()
Calls setCurrentStep() function using getCurrentStep() + 1.
#define TE_SA_SPG_ATTR_PK_NAME
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
Virtual class to generate samples points.
void setNumberOfPoints(int nPoints)
virtual std::auto_ptr< te::da::DataSetType > createDataSetType()
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
It describes a primary key (pk) constraint.
#define TE_SA_SPG_ATTR_ID_NAME