TsRasterIterator.cpp File Reference
#include <terralib_buildconfig.h>
#include <terralib/raster.h>
#include <terralib/dataaccess.h>
#include <terralib/geometry.h>
#include <terralib/memory.h>
#include <terralib/rp.h>
#include "../Config.h"
#include <memory>
#include <boost/test/unit_test.hpp>
#include <boost/shared_ptr.hpp>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (rasterIteratorConstructor1_test)
 
 BOOST_AUTO_TEST_CASE (rasterIteratorConstructor2_test)
 
 BOOST_AUTO_TEST_CASE (rasterIteratorConstructor3_test)
 
 BOOST_AUTO_TEST_CASE (rasterIteratorGetRow_test)
 
 BOOST_AUTO_TEST_CASE (rasterIteratorGetCol_test)
 
 BOOST_AUTO_TEST_CASE (polygonIterator1_test)
 
 BOOST_AUTO_TEST_CASE (polygonIterator2_test)
 
 BOOST_AUTO_TEST_CASE (polygonIterator3_outsidepol_test)
 
 BOOST_AUTO_TEST_CASE (polygonIterator_NDisjointBBOXIterationT_test1)
 
 BOOST_AUTO_TEST_CASE (polygonIterator_NDisjointBBOXIterationT_test2)
 
 BOOST_AUTO_TEST_SUITE (rasterIterator_tests) void drawPolygonInRaster(const te
 
bool Copy2DiskRaster (const te::rst::Raster &inputRaster, const std::string &fileName)
 
void Copy2DiskShp (std::vector< te::gm::Polygon * > polygons, std::string shpName)
 
te::gm::LinearRingcreateRotatedSquare (const double &xCenter, const double &yCenter, const double &diagonalSize, int srid)
 
te::gm::LinearRingcreateSquare (const double &xCenter, const double &yCenter, const double &lateralSize, int srid)
 
void CreateTestRaster (unsigned int nBands, unsigned int nLines, unsigned int nCols, boost::shared_ptr< te::rst::Raster > &rasterPointer, bool zero)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( rasterIteratorConstructor1_test  )

Definition at line 238 of file TsRasterIterator.cpp.

BOOST_AUTO_TEST_CASE ( rasterIteratorConstructor2_test  )

Definition at line 242 of file TsRasterIterator.cpp.

BOOST_AUTO_TEST_CASE ( rasterIteratorConstructor3_test  )

Definition at line 246 of file TsRasterIterator.cpp.

BOOST_AUTO_TEST_CASE ( rasterIteratorGetRow_test  )

Definition at line 250 of file TsRasterIterator.cpp.

BOOST_AUTO_TEST_CASE ( rasterIteratorGetCol_test  )

Definition at line 254 of file TsRasterIterator.cpp.

void Copy2DiskShp ( std::vector< te::gm::Polygon * >  polygons,
std::string  shpName 
)
te::gm::LinearRing* createRotatedSquare ( const double &  xCenter,
const double &  yCenter,
const double &  diagonalSize,
int  srid 
)

Definition at line 225 of file TsRasterIterator.cpp.

References te::gm::LineStringType, and te::gm::LineString::setPoint().

Referenced by BOOST_AUTO_TEST_CASE().

te::gm::LinearRing* createSquare ( const double &  xCenter,
const double &  yCenter,
const double &  lateralSize,
int  srid 
)

Definition at line 212 of file TsRasterIterator.cpp.

References te::gm::LineStringType, and te::gm::LineString::setPoint().

Referenced by BOOST_AUTO_TEST_CASE().

void CreateTestRaster ( unsigned int  nBands,
unsigned int  nLines,
unsigned int  nCols,
boost::shared_ptr< te::rst::Raster > &  rasterPointer,
bool  zero 
)