GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Geo::GDAL::FFI::Band(3) User Contributed Perl Documentation Geo::GDAL::FFI::Band(3)

Geo::GDAL::FFI::Band - A GDAL raster band

A band (channel) in a raster dataset. Use the Band method of a dataset object to obtain a band object.

 my $datatype = $band->GetDataType;

 my @size = $band->GetSize;

 my @size = $band->GetBlockSize;

 my $nodata = $band->GetNoDataValue;

 $band->SetNoDataValue($value);

Calling the method without arguments deletes the nodata value.

 $band->SetNoDataValue;

 my $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.

 my $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.

 $band->Write($data, $xoff, $yoff, $xsize, $ysize);

 $band->WriteBlock($data, $xoff, $yoff);

 $band->SetPiddle($pdl, $xoff, $yoff, $xsize, $ysize);

Read data from a piddle into this Band.

 $band->GetPiddle($xoff, $yoff, $xsize, $ysize, $xdim, $ydim);

Read data from this Band into a piddle.

 my $ci = $band->GetColorInterpretation;

 $band->SetColorInterpretation($ci);

 my $color_table = $band->GetColorTable;

Returns the color table as an array of arrays. The inner tables are colors [c1...c4].

 $band->SetColorTable($color_table);

This software is released under the Artistic License. See perlartistic.

Ari Jolma - Ari.Jolma at gmail.com

Geo::GDAL::FFI

Alien::gdal, FFI::Platypus, <http://www.gdal.org>

2021-03-16 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.