26 #include "../../../../datatype/Utils.h" 27 #include "../../../../raster/RasterSummary.h" 28 #include "../../../../raster/RasterSummaryManager.h" 29 #include "../../../../raster/Band.h" 30 #include "../../../../raster/BandProperty.h" 31 #include "../../../../raster/Utils.h" 32 #include "../../../../srs/SpatialReferenceSystemManager.h" 33 #include "../../../../qt/widgets/propertybrowser/AbstractPropertyManager.h" 38 te::qt::widgets::AbstractPropertyItem(pb)
42 addProperty(rasterInfo_prop, tr(
"Raster properties"), QColor(255, 255, 175));
46 rasterInfo_prop->addSubProperty(srid_prop);
47 srid_prop->setPropertyName(
"srid");
48 srid_prop->setEnabled(
false);
51 QString sridStr = QString::number(raster->
getSRID());
52 sridStr += QObject::tr(
" - ");
66 rasterInfo_prop->addSubProperty(nLinesProp);
67 rasterInfo_prop->addSubProperty(nColumnsProp);
68 rasterInfo_prop->addSubProperty(nBandsProp);
69 rasterInfo_prop->addSubProperty(nResXProp);
70 rasterInfo_prop->addSubProperty(nResYProp);
71 rasterInfo_prop->addSubProperty(nAccessProp);
72 rasterInfo_prop->addSubProperty(nMultiResProp);
75 nLinesProp->setEnabled(
false);
76 nColumnsProp->setEnabled(
false);
77 nBandsProp->setEnabled(
false);
78 nResXProp->setEnabled(
false);
79 nResYProp->setEnabled(
false);
80 nAccessProp->setEnabled(
false);
81 nMultiResProp->setEnabled(
false);
134 bandProp->addSubProperty(descriptionProp);
135 bandProp->addSubProperty(dataTypeProp);
136 bandProp->addSubProperty(dummyValueProp);
137 bandProp->addSubProperty(colorInterpProp);
138 bandProp->addSubProperty(palleteInterpProp);
141 descriptionProp->setEnabled(
false);
142 dataTypeProp->setEnabled(
false);
143 dummyValueProp->setEnabled(
false);
144 colorInterpProp->setEnabled(
false);
145 palleteInterpProp->setEnabled(
false);
162 blockProp->addSubProperty(nBlockXProp);
163 blockProp->addSubProperty(nBlockYProp);
164 blockProp->addSubProperty(blockWProp);
165 blockProp->addSubProperty(blockHProp);
167 nBlockXProp->setEnabled(
false);
168 nBlockYProp->setEnabled(
false);
169 blockWProp->setEnabled(
false);
170 blockHProp->setEnabled(
false);
177 bandProp->addSubProperty(blockProp);
189 categProp->addSubProperty(cNameProp);
191 cNameProp->setEnabled(
false);
196 bandProp->addSubProperty(categProp);
207 QtProperty* metaItemProp =
211 metaProp->addSubProperty(metaItemProp);
213 metaItemProp->setEnabled(
false);
216 metaItemProp, QString::fromStdString(
220 bandProp->addSubProperty(metaProp);
224 rasterInfo_prop->addSubProperty(bandProp);
TEDATATYPEEXPORT std::string ConvertDataTypeToString(const int &dataType)
Function used to convert from a int (Data Type Enum) to a string.
virtual unsigned int getMultiResLevelsCount() const =0
Returns the current number of multi-resolution pyramid levels.
std::vector< std::string > m_categoryNames
Set of categoric names for the values contained in a dimension.
unsigned int getNumberOfColumns() const
Returns the raster number of columns.
int m_nblocksx
The number of blocks in x.
int m_nblocksy
The number of blocks in y.
double m_noDataValue
Value to indicate elements where there is no data, default is std::numeric_limits<double>::max().
TERASTEREXPORT std::string ConvertColorInterpTypeToString(const te::rst::ColorInterp &ci)
Function used to convert from a Color Interp Enum to a string.
te::common::AccessPolicy getAccessPolicy() const
Returns the raster access policy.
RasterPropertiesInfo(QtTreePropertyBrowser *pb, te::rst::Raster *raster)
Constructor.
std::vector< std::pair< std::string, std::string > > m_metadata
A list of metadata where each element consists of a (key, value).
static AbstractPropertyManager & getInstance()
It returns a reference to the singleton instance.
An abstract class for raster data strucutures.
unsigned int getNumberOfRows() const
Returns the raster number of rows.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
BandProperty * getProperty()
Returns the band property.
virtual ~RasterPropertiesInfo()
Destructor.
int m_blkw
Block width (pixels).
double getResolutionX() const
Returns the raster horizontal (x-axis) resolution.
A raster band description.
virtual const Band * getBand(std::size_t i) const =0
Returns the raster i-th band.
boost::shared_ptr< UnitOfMeasure > UnitOfMeasurePtr
int getSRID() const
Returns the raster spatial reference system identifier.
TERASTEREXPORT std::string ConvertPalleteInterpTypeToString(const te::rst::PaletteInterpretation &pi)
Function used to convert from a Pallete Interp Enum to a string.
double getResolutionY() const
Returns the raster vertical (y-axis) resolution.
int getType() const
It returns the data type of the elements in the band.
std::string m_description
A description.
int m_blkh
Block height (pixels).
ColorInterp m_colorInterp
The color interpretation.
PaletteInterpretation m_paletteInterp
Pallete interpretation.