|
NAMEGeo::GDAL::FFI::Band - A GDAL raster bandSYNOPSISDESCRIPTIONA band (channel) in a raster dataset. Use the Band method of a dataset object to obtain a band object.METHODSGetDataTypemy $datatype = $band->GetDataType; GetSizemy @size = $band->GetSize; GetBlockSizemy @size = $band->GetBlockSize; GetNoDataValuemy $nodata = $band->GetNoDataValue; SetNoDataValue$band->SetNoDataValue($value); Calling the method without arguments deletes the nodata value. $band->SetNoDataValue; Readmy $data = $band->Read($xoff, $yoff, $xsize, $ysize, $bufxsize, $bufysize); All arguments are optional. If no arguments are given, reads the whole raster band into a 2D Perl array. The returned array is an array of references to arrays of row values. ReadBlockmy $data = $band->ReadBlock($xoff, $yoff, @blocksize, $datatype); Reads a block of data from the band and returns it as a Perl 2D array. @blocksize and $datatype (an integer) are optional and obtained from the GDAL raster object if not given. Write$band->Write($data, $xoff, $yoff, $xsize, $ysize); WriteBlock$band->WriteBlock($data, $xoff, $yoff); SetPiddle$band->SetPiddle($pdl, $xoff, $yoff, $xsize, $ysize); Read data from a piddle into this Band. GetPiddle$band->GetPiddle($xoff, $yoff, $xsize, $ysize, $xdim, $ydim); Read data from this Band into a piddle. GetColorInterpretationmy $ci = $band->GetColorInterpretation; SetColorInterpretation$band->SetColorInterpretation($ci); GetColorTablemy $color_table = $band->GetColorTable; Returns the color table as an array of arrays. The inner tables are colors [c1...c4]. SetColorTable$band->SetColorTable($color_table); LICENSEThis software is released under the Artistic License. See perlartistic.AUTHORAri Jolma - Ari.Jolma at gmail.comSEE ALSOGeo::GDAL::FFIAlien::gdal, FFI::Platypus, <http://www.gdal.org>
Visit the GSP FreeBSD Man Page Interface. |