Geo::GDAL 1.7.0
|
Public Object Methods | |
scalar | DataType () |
list | GetBlockSize () |
scalar | ColorInterpretation (scalar color_interpretation) |
scalar | NoDataValue (scalar NoDataValue) |
scalar | GetNoDataValue () |
SetNoDataValue (scalar NoDataValue) | |
scalar | GetMinimum () |
scalar | GetMaximum () |
scalar | GetOffset () |
scalar | GetScale () |
list | GetStatistics (scalar approx_ok, scalar force) |
SetStatistics (scalar min, scalar max, scalar mean, scalar stddev) | |
scalar | GetOverviewCount () |
Geo::GDAL::Band | GetOverview (scalar band) |
scalar | Checksum (scalar xoff=0, scalar yoff=0, scalar xsize=undef, scalar ysize=undef) |
ComputeRasterMinMax (scalar approx_ok=0) | |
ComputeBandStats (scalar samplestep=1) | |
Fill (scalar real_part, scalar imag_part=0.0) | |
WriteTile (scalar data, scalar xoff=0, scalar yoff=0) | |
listref | ReadTile (scalar xoff=0, scalar yoff=0, scalar xsize=< width >, scalar ysize=< height >) |
WriteRaster (scalar xoff, scalar yoff, scalar xsize, scalar ysize, scalar buf, scalar buf_xsize=undef, scalar buf_ysize=undef, scalar buf_type=undef) | |
scalar | ReadRaster (scalar xoff, scalar yoff, scalar xsize, scalar ysize, scalar buf_xsize=undef, scalar buf_ysize=undef, scalar buf_type=undef) |
list | GetHistogram (hash parameters) |
FlushCache () | |
Geo::GDAL::ColorTable | ColorTable (scalar ColorTable) |
Geo::GDAL::ColorTable | GetRasterColorTable () |
SetRasterColorTable (scalar ColorTable) | |
CreateMaskBand () | |
Geo::GDAL::Band | GetMaskBand () |
scalar | GetMaskFlags () |
list | CategoryNames (list names) |
scalar | GetRasterCategoryNames () |
SetRasterCategoryNames (scalar names) | |
Geo::GDAL::RasterAttributeTable | AttributeTable (scalar AttributeTable) |
Geo::GDAL::RasterAttributeTable | GetDefaultRAT () |
SetDefaultRAT (scalar AttributeTable) | |
Geo::OGR::Layer | Contours (scalar DataSource, hashref LayerConstructor, scalar ContourInterval, scalar ContourBase, listref FixedLevels, scalar NoDataValue, scalar IDField, scalar ElevField, scalar callback, scalar callback_data) |
scalar | GetRasterColorInterpretation () |
SetRasterColorInterpretation () | |
Public Attributes | |
XSize | |
YSize |
Geo::GDAL::RasterAttributeTable Geo::GDAL::Band::AttributeTable | ( | scalar | AttributeTable | ) |
AttributeTable | [optional] A Geo::GDAL::RasterAttributeTable object. |
list Geo::GDAL::Band::CategoryNames | ( | list | names | ) |
names | [optional] |
scalar Geo::GDAL::Band::Checksum | ( | scalar | xoff = 0 , |
scalar | yoff = 0 , |
||
scalar | xsize = undef , |
||
scalar | ysize = undef |
||
) |
Computes a checksum from the raster or a part of it.
xoff | |
yoff | |
xsize | |
ysize |
scalar Geo::GDAL::Band::ColorInterpretation | ( | scalar | color_interpretation | ) |
Color interpretation is currently one of Undefined GrayIndex PaletteIndex RedBand GreenBand BlueBand AlphaBand HueBand SaturationBand LightnessBand CyanBand MagentaBand YellowBand BlackBand
color_interpretation | [optional] new color interpretation |
Geo::GDAL::ColorTable Geo::GDAL::Band::ColorTable | ( | scalar | ColorTable | ) |
Get or set the color table of this band.
ColorTable | [optional] a Geo::GDAL::ColorTable object |
Geo::GDAL::Band::ComputeBandStats | ( | scalar | samplestep = 1 | ) |
samplestep |
Geo::GDAL::Band::ComputeRasterMinMax | ( | scalar | approx_ok = 0 | ) |
Geo::OGR::Layer Geo::GDAL::Band::Contours | ( | scalar | DataSource, |
hashref | LayerConstructor, | ||
scalar | ContourInterval, | ||
scalar | ContourBase, | ||
listref | FixedLevels, | ||
scalar | NoDataValue, | ||
scalar | IDField, | ||
scalar | ElevField, | ||
scalar | callback, | ||
scalar | callback_data | ||
) |
Generate contours for this raster band. This method can also be used with named parameters.
DataSource | a Geo::OGR::DataSource object, default is a Memory data source |
LayerConstructor | data for Geo::OGR::DataSource::CreateLayer, default is {Name => 'contours'} |
ContourInterval | default is 100 |
ContourBase | default is 0 |
FixedLevels | a reference to a list of fixed contour levels, default is [] |
NoDataValue | default is undef |
IDField | default is '', i.e., no field |
ElevField | default is '', i.e., no field |
callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) |
callback_data | [optional] |
Geo::GDAL::Band::CreateMaskBand | ( | ) |
scalar Geo::GDAL::Band::DataType | ( | ) |
Geo::GDAL::Band::Fill | ( | scalar | real_part, |
scalar | imag_part = 0.0 |
||
) |
Fill the band with a constant value.
real_part | Real component of fill value. |
imag_part | Imaginary component of fill value. |
Geo::GDAL::Band::FlushCache | ( | ) |
Write cached data to disk. There is usually no need to call this method.
list Geo::GDAL::Band::GetBlockSize | ( | ) |
Geo::GDAL::RasterAttributeTable Geo::GDAL::Band::GetDefaultRAT | ( | ) |
list Geo::GDAL::Band::GetHistogram | ( | hash | parameters | ) |
Compute histogram from the raster.
parameters | Named parameters:
|
Geo::GDAL::Band Geo::GDAL::Band::GetMaskBand | ( | ) |
scalar Geo::GDAL::Band::GetMaskFlags | ( | ) |
scalar Geo::GDAL::Band::GetMaximum | ( | ) |
scalar Geo::GDAL::Band::GetMinimum | ( | ) |
scalar Geo::GDAL::Band::GetNoDataValue | ( | ) |
scalar Geo::GDAL::Band::GetOffset | ( | ) |
Scale and offset used to store data values in transformed form. The conversion function is:
Units value = (raw value * scale) + offset
Geo::GDAL::Band Geo::GDAL::Band::GetOverview | ( | scalar | band | ) |
band | 0..GetOverviewCount-1 |
scalar Geo::GDAL::Band::GetOverviewCount | ( | ) |
scalar Geo::GDAL::Band::GetRasterCategoryNames | ( | ) |
scalar Geo::GDAL::Band::GetRasterColorInterpretation | ( | ) |
Geo::GDAL::ColorTable Geo::GDAL::Band::GetRasterColorTable | ( | ) |
scalar Geo::GDAL::Band::GetScale | ( | ) |
Scale and offset are used to store data values in transformed form. The conversion function is:
Units value = (raw value * scale) + offset
list Geo::GDAL::Band::GetStatistics | ( | scalar | approx_ok, |
scalar | force | ||
) |
approx_ok | Whether it is allowed to compute the statistics based on overviews or similar. |
force | Whether to force scanning of the whole raster. |
scalar Geo::GDAL::Band::NoDataValue | ( | scalar | NoDataValue | ) |
NoDataValue | [optional] Get or set the no data value. |
scalar Geo::GDAL::Band::ReadRaster | ( | scalar | xoff, |
scalar | yoff, | ||
scalar | xsize, | ||
scalar | ysize, | ||
scalar | buf_xsize = undef , |
||
scalar | buf_ysize = undef , |
||
scalar | buf_type = undef |
||
) |
xoff | |
yoff | |
xsize | |
ysize | |
buf_xsize | |
buf_ysize | |
buf_type |
listref Geo::GDAL::Band::ReadTile | ( | scalar | xoff = 0 , |
scalar | yoff = 0 , |
||
scalar | xsize = <width> , |
||
scalar | ysize = <height> |
||
) |
xoff | |
yoff | |
xsize | |
ysize |
Geo::GDAL::Band::SetDefaultRAT | ( | scalar | AttributeTable | ) |
AttributeTable | a Geo::GDAL::RasterAttributeTable object |
Geo::GDAL::Band::SetNoDataValue | ( | scalar | NoDataValue | ) |
NoDataValue | A number. undef does not do what it should do. |
Geo::GDAL::Band::SetRasterCategoryNames | ( | scalar | names | ) |
names |
Geo::GDAL::Band::SetRasterColorInterpretation | ( | ) |
Geo::GDAL::Band::SetRasterColorTable | ( | scalar | ColorTable | ) |
ColorTable | A color table object. |
Geo::GDAL::Band::SetStatistics | ( | scalar | min, |
scalar | max, | ||
scalar | mean, | ||
scalar | stddev | ||
) |
Save the statistics of the band if possible (the format can save arbitrary metadata).
min | |
max | |
mean | |
stddev |
Geo::GDAL::Band::WriteRaster | ( | scalar | xoff, |
scalar | yoff, | ||
scalar | xsize, | ||
scalar | ysize, | ||
scalar | buf, | ||
scalar | buf_xsize = undef , |
||
scalar | buf_ysize = undef , |
||
scalar | buf_type = undef |
||
) |
xoff | |
yoff | |
xsize | |
ysize | |
buf | The data to be written in a binary buffer. Use the pack function of Perl to prepare a buffer. |
buf_xsize | |
buf_ysize | |
buf_type |
Geo::GDAL::Band::WriteTile | ( | scalar | data, |
scalar | xoff = 0 , |
||
scalar | yoff = 0 |
||
) |
data | A two-dimensional Perl array, organizes as data->[y][x], y = 0..height-1, x = 0..width-1. |
xoff | |
yoff |
scalar (access as $band->{XSize})
scalar (access as $band->{YSize})