#include "RasterExamples.h"#include <terralib/raster.h>#include <terralib/geometry.h>#include <iostream>#include <map>#include <memory>Go to the source code of this file.
Functions | |
| te::gm::Polygon * | createPolygon (const double &llx, const double &lly, const double &urx, const double &ury) |
| void | GribPolygonExample () |
| An example to use Grib and Geometry. More... | |
| void | Mask (te::rst::Raster *iraster, const te::gm::Polygon *poly, te::rst::Raster *oraster) |
| te::rst::Raster * | Mask (te::rst::Raster *iraster, const te::gm::Polygon *poly, const std::map< std::string, std::string > &routinfo=std::map< std::string, std::string >(), const std::string &rtype=TE_DEFAULT_RASTER_TYPE) |
| te::gm::Polygon* createPolygon | ( | const double & | llx, |
| const double & | lly, | ||
| const double & | urx, | ||
| const double & | ury | ||
| ) |
Definition at line 17 of file GribPolygonExample.cpp.
References te::gm::LineStringType, p, te::gm::PolygonType, te::gm::CurvePolygon::push_back(), and te::gm::LineString::setPoint().
Referenced by GribPolygonExample(), and Mask().
| void GribPolygonExample | ( | ) |
An example to use Grib and Geometry.
Definition at line 120 of file GribPolygonExample.cpp.
References createPolygon(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), Mask(), and te::rst::RasterFactory::open().
| void Mask | ( | te::rst::Raster * | iraster, |
| const te::gm::Polygon * | poly, | ||
| te::rst::Raster * | oraster | ||
| ) |
Definition at line 37 of file GribPolygonExample.cpp.
References createPolygon(), te::rst::Grid::geoToGrid(), te::gm::CurvePolygon::getArea(), te::rst::Grid::getExtent(), te::rst::Raster::getGrid(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::gm::Geometry::getMBR(), te::rst::Raster::getResolutionX(), te::rst::Raster::getResolutionY(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), te::gm::PolygonType, te::rst::Raster::setValue(), te::gm::Coord2D::x, and te::gm::Coord2D::y.
Referenced by GribPolygonExample(), and Mask().
| te::rst::Raster* Mask | ( | te::rst::Raster * | iraster, |
| const te::gm::Polygon * | poly, | ||
| const std::map< std::string, std::string > & | routinfo = std::map<std::string, std::string>(), |
||
| const std::string & | rtype = TE_DEFAULT_RASTER_TYPE |
||
| ) |
Definition at line 96 of file GribPolygonExample.cpp.
References te::dt::DOUBLE_TYPE, te::rst::Raster::getGrid(), te::sa::Grid, te::rst::RasterFactory::make(), and Mask().