29 #include "../../geometry/Point.h" 30 #include "../../memory/DataSet.h" 31 #include "../../srs/Config.h" 36 m_distReal = boost::random::uniform_real_distribution<>(0, 1);
46 std::unique_ptr<te::mem::DataSet> dsMem =
generateSamples(dsType.get());
79 std::map<std::string, std::string> options;
81 m_ds->createDataSet(dsType, options);
SamplePointsGeneratorAbstract()
Default constructor.
void saveDataSet(te::mem::DataSet *dataSet, te::da::DataSetType *dsType)
void setEnvelope(te::gm::Envelope env)
boost::shared_ptr< DataSource > DataSourcePtr
#define TE_UNKNOWN_SRS
A numeric value to represent a unknown SRS identification in TerraLib.
A class that models the description of a dataset.
virtual ~SamplePointsGeneratorAbstract()
Virtual destructor.
boost::random::uniform_real_distribution m_distReal
boost::random::mt19937 m_gen
void setOutputDataSource(te::da::DataSourcePtr ds)
const double & getUpperRightX() const
It returns a constant refernce to the x coordinate of the upper right corner.
virtual std::unique_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)=0
const double & getLowerLeftY() const
It returns a constant refernce to the y coordinate of the lower left corner.
static te::dt::Date ds(2010, 01, 01)
const double & getUpperRightY() const
It returns a constant refernce to the x coordinate of the upper right corner.
std::string m_outputDataSetName
Attribute that defines the output dataset name.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver...
A point with x and y coordinate values.
An Envelope defines a 2D rectangular region.
te::gm::Envelope m_env
Attribute used to restrict the area to generate the samples.
te::gm::Point * getPoint(const te::gm::Envelope *env)
void execute()
Function to execute the kernel operation.
bool moveBeforeFirst()
It moves the internal pointer to a position before the first item in the collection.
void setOutputDataSetName(std::string dataSetName)
void setX(const double &x)
It sets the Point x-coordinate value.
const double & getLowerLeftX() const
It returns a constant reference to the x coordinate of the lower left corner.
void setY(const double &y)
It sets the Point y-coordinate value.
This file contains a virtual class to generate samples points.
virtual std::unique_ptr< te::da::DataSetType > createDataSetType()=0
te::da::DataSourcePtr m_ds
Pointer to the output datasource.
int m_srid
Attribute with spatial reference information.