Geo::GDAL::FFI::VSI::File(3pm)

Geo::GDAL::FFI::VSI::File3pm

A gdal virtual file

Overview

Methods

Open

 my $vsifile = Geo::GDAL::FFI::VSI::File->Open($name, $access);

Open a virtual file. $name is the name of the file to open. $access is 'r', 'r+', 'a', or 'w'. 'r' is the default.

Returns a Geo::GDAL::FFI::VSI::File object.

Close

Closes the file handle. Is done automatically when the object is destroyed.

Read($len)

Read $len bytes from the file. Returns the bytes in a Perl string. $len is optional and by default 1.

Write($buf)

Write the Perl string $buf into the file. Returns the number of successfully written bytes.

License

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

Author

Ari Jolma - Ari.Jolma at gmail.com

From libgeo-gdal-ffi-perl 0.12-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.