28 #ifndef __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORSTRATIFIED_H
29 #define __TERRALIB_SA_INTERNAL_SAMPLEPOINTSGENERATORSTRATIFIED_H
32 #include "../../geometry/Geometry.h"
40 #include <boost/random/mersenne_twister.hpp>
41 #include <boost/random/uniform_int_distribution.hpp>
46 namespace da {
class DataSet; }
47 namespace da {
class DataSetType; }
48 namespace mem {
class DataSet; }
109 std::map<std::string, std::vector<te::gm::Geometry*> >
m_classMap;
This file contains a virtual class to generate samples points.
A class that models the description of a dataset.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A point with x and y coordinate values.
Virtual class to generate samples points.
Class to generate samples points using stratified strategy.
void isProportionalToArea(bool isProp)
virtual ~SamplePointsGeneratorStratified()
Virtual destructor.
void setInputAttributeName(std::string attrName)
virtual std::unique_ptr< te::da::DataSetType > createDataSetType()
boost::random::uniform_int_distribution m_distInt
void setInputDataSet(std::unique_ptr< te::da::DataSet > dataSet)
virtual std::unique_ptr< te::mem::DataSet > generateSamples(te::da::DataSetType *dsType)
void setNumberOfPoints(int nPoints)
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.
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.
bool m_propToArea
Attribute used to indicate if the number of samples has to be proportional to the area.
SamplePointsGeneratorStratified()
Default constructor.
te::gm::Point * getPointInGeometry(te::gm::Geometry *g)
#define TESAEXPORT
You can use this macro in order to export/import classes and functions from this module.