28#ifndef __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORSTRATIFIED_H
29#define __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORSTRATIFIED_H
40#include <boost/random/mersenne_twister.hpp>
41#include <boost/random/uniform_int_distribution.hpp>
109 std::map<std::string, std::vector<te::gm::Geometry*> >
m_classMap;
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
This file contains a virtual class to generate samples points.
A class that models the description of a dataset.
A dataset is the unit of information manipulated by the data access module of TerraLib.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A point with x and y coordinate values.
Implementation of a random-access dataset class for the TerraLib In-Memory Data Access driver.
Virtual class to generate samples points.
void isProportionalToArea(bool isProp)
virtual ~SamplePointsGeneratorStratified()
Virtual destructor.
void setInputAttributeName(std::string attrName)
boost::random::uniform_int_distribution m_distInt
void setInputDataSet(std::unique_ptr< te::da::DataSet > dataSet)
void setNumberOfPoints(int nPoints)
te::gm::Point * getPointInGeometry(te::gm::Geometry *g)
std::vector< std::string > getClassNames()
int m_nPoints
Attribute used to define the number of points to be generated.
std::map< std::string, std::vector< te::gm::Geometry * > > m_classMap
Attribute with polygons for each class from input dataset.
virtual std::unique_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)
std::string m_attrName
Attribute used to get from input data the selected attribute.
std::unique_ptr< te::da::DataSet > m_dataSet
Attribute with input data.
virtual std::unique_ptr< te::da::DataSetType > createDataSetType()
bool m_propToArea
Attribute used to indicate if the number of samples has to be proportional to the area.
SamplePointsGeneratorStratified()
Default constructor.
Namespace for the DataAccess API of TerraLib.
Namespace for the memory data source of TerraLib.
Namespace for the TerraLib SA module.
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.