27 #include "../common/STLUtils.h" 28 #include "../datatype/Enums.h" 37 #include <boost/filesystem.hpp> 38 #include <boost/format.hpp> 50 const std::vector<BandProperty*>&
bands,
51 const std::map<std::string, std::string>& rinfo,
83 SimpleProperty::operator=(rhs);
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.
static te::dt::TimeDuration dt(20, 30, 50, 11)
bool isRequired() const
It returns true if the attribute is required, otherwise it returns false.
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.
A rectified grid is the spatial support for raster data.
const std::map< std::string, std::string > & getInfo() const
Returns the detailed information about the 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.
SimpleProperty(const std::string &name, int datatype, bool isRequired=false, std::string *defaultValue=0, unsigned int id=0, Property *parent=0)
It constructs a new simple property.