29 #include "../../common/Exception.h" 30 #include "../../core/translator/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" 59 dsType->add(idProperty);
63 dsType->add(geomProperty);
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.
#define TE_SA_SPG_ATTR_PK_NAME
A class that models the description of a dataset.
int m_nPoints
Attribute used to define the number of points to be generated.
This class can be used to inform the progress of a task.
static te::dt::Date ds(2010, 01, 01)
#define TE_SA_SPG_ATTR_GEOM_NAME
#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.
std::string m_outputDataSetName
Attribute that defines the output dataset name.
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_ID_NAME
virtual std::unique_ptr< te::da::DataSetType > createDataSetType()
te::gm::Envelope m_env
Attribute used to restrict the area to generate the samples.
SamplePointsGeneratorRandom()
Default constructor.
void pulse()
Calls setCurrentStep() function using getCurrentStep() + 1.
te::gm::Point * getPoint(const te::gm::Envelope *env)
This class is designed to declare objects to be thrown as exceptions by TerraLib. ...
void setNumberOfPoints(int nPoints)
An implementation of the DatasetItem class for the TerraLib In-Memory Data Access driver...
It describes a primary key (pk) constraint.
virtual std::unique_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)
int m_srid
Attribute with spatial reference information.