Loading...
Searching...
No Matches
te::cellspace::CellularSpacesOperations Class Reference

This class provide cellular spaces operations. More...

#include <CellSpaceOperations.h>

Public Types

enum  CellSpaceType { CELLSPACE_POLYGONS , CELLSPACE_POINTS }
 

Public Member Functions

 CellularSpacesOperations ()
 
void createCellSpace (te::da::DataSourceInfoPtr outputSource, const std::string &name, const double &resX, const double &resY, const te::gm::Envelope &env, const int srid, CellSpaceType type, te::map::AbstractLayerPtr layerBase)
 It creates a Cellular Space.
 
 ~CellularSpacesOperations ()
 

Private Member Functions

void addCell (te::mem::DataSet *ds, int col, int row, te::gm::Geometry *geom)
 Add a cell in the memory dataset.
 
te::da::DataSetTypecreateCellularDataSetType (const std::string &name, int srid, CellSpaceType type)
 Create the DataSetType of the cellular space.
 
te::sam::rtree::Index< size_t, 8 > * getRtree (te::map::AbstractLayerPtr layerBase)
 Get a RTree with the geometries envelopes of layer.
 

Detailed Description

This class provide cellular spaces operations.

Definition at line 67 of file CellSpaceOperations.h.

Member Enumeration Documentation

◆ CellSpaceType

Enumerator
CELLSPACE_POLYGONS 

Polygons Type.

CELLSPACE_POINTS 

Points Type.

Definition at line 72 of file CellSpaceOperations.h.

Constructor & Destructor Documentation

◆ CellularSpacesOperations()

te::cellspace::CellularSpacesOperations::CellularSpacesOperations ( )

◆ ~CellularSpacesOperations()

te::cellspace::CellularSpacesOperations::~CellularSpacesOperations ( )

Member Function Documentation

◆ addCell()

void te::cellspace::CellularSpacesOperations::addCell ( te::mem::DataSet * ds,
int col,
int row,
te::gm::Geometry * geom )
private

Add a cell in the memory dataset.

Parameters
dsDataSet where the cell will be added.
colColumn number.
rowRow number.
geomGeometry that will be added.

◆ createCellSpace()

void te::cellspace::CellularSpacesOperations::createCellSpace ( te::da::DataSourceInfoPtr outputSource,
const std::string & name,
const double & resX,
const double & resY,
const te::gm::Envelope & env,
const int srid,
CellSpaceType type,
te::map::AbstractLayerPtr layerBase )

It creates a Cellular Space.

Parameters
outputSourceInformation about the output datasource.
nameName of the output layer.
resXCells resolution in X-dimension.
resYCells resolution in X-dimension.
envThe bouding box of the cell space.
sridThe spatial reference for the bouding box.
typeThe type of cell space to be created.

◆ createCellularDataSetType()

te::da::DataSetType * te::cellspace::CellularSpacesOperations::createCellularDataSetType ( const std::string & name,
int srid,
CellSpaceType type )
private

Create the DataSetType of the cellular space.

Parameters
nameDataSetType name.
sridDataSetType SRID.
typeCelluar space type (polygon, points or raster).
Returns
The DataSetType created.

◆ getRtree()

te::sam::rtree::Index< size_t, 8 > * te::cellspace::CellularSpacesOperations::getRtree ( te::map::AbstractLayerPtr layerBase)
private

Get a RTree with the geometries envelopes of layer.

Parameters
layerBaseLayer base.
Returns
The RTree created.

The documentation for this class was generated from the following file: