27 #include "../common/STLUtils.h"
28 #include "../datatype/Enums.h"
37 #include <boost/filesystem.hpp>
38 #include <boost/format.hpp>
44 : te::dt::SimpleProperty(name, te::dt::
RASTER_TYPE, isRequired, 0, id, parent),
50 const std::vector<BandProperty*>& bands,
51 const std::map<std::string, std::string>& rinfo,
55 : te::dt::SimpleProperty(
"", te::dt::
RASTER_TYPE, isRequired, 0, id, parent),
63 : te::dt::SimpleProperty(rhs)
83 SimpleProperty::operator=(rhs);
120 m_bands.push_back(b);
125 assert(i < m_bands.size());
void setInfo(const std::map< std::string, std::string > &rinfo)
Sets the detailed information about the raster data.
void set(te::rst::Grid *grid)
Sets the definition of the raster grid support.
It describes one band (or dimension) of a raster.
std::map< std::string, std::string > m_rinfo
Additional raster information.
A raster band description.
void Copy(const std::vector< T * > &src, std::vector< T * > &dst)
This function can be applied to a vector of pointers. It will copy element by element through its cop...
It models a property definition.
RasterProperty(const std::string &name, bool isRequired=false, unsigned int id=0, te::dt::Property *parent=0)
It constructs a new raster property.
void add(te::rst::BandProperty *b)
It adds a new band information to the property.
te::dt::Property * clone() const
It returns a clone of the object.
std::vector< BandProperty * > m_bands
A vector of bands description.
virtual ~RasterProperty()
Destructor.
RasterProperty & operator=(const RasterProperty &rhs)
Assignment operator.
te::rst::Grid * getGrid()
Returns the definition of the raster grid support.
const std::map< std::string, std::string > & getInfo() const
Returns the detailed information about the raster data.
A rectified grid is the spatial support for raster data.
std::vector< te::rst::BandProperty * > & getBandProperties()
Returns a reference to the list of bands definitions.
A rectified grid is the spatial support for raster data.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
Grid * m_grid
Sets the Raster Property name.