Geo::GDAL  2.0
Geo::GDAL::VSIF Class Reference

A GDAL virtual file system. More...

Public Member Functions

public method Close ()
 
public method MkDir ()
 
public Geo::GDAL::VSIF Open (scalar filename, scalar mode)
 
public scalar Read (scalar count)
 
public list ReadDir (scalar dir)
 
public scalar ReadDirRecursive (scalar dir)
 
public method Rename (scalar old, scalar new)
 
public method RmDir ()
 
public method Rmdir (scalar path)
 
public method Seek (scalar offset, scalar whence)
 
public list Stat (scalar filename)
 
public scalar Tell ()
 
public method Truncate (scalar new_size)
 
public method Unlink (scalar filename)
 
public method Write (scalar scalar)
 

Detailed Description

A GDAL virtual file system.

Definition at line 5104 of file all.pm.

Member Function Documentation

public method Geo::GDAL::VSIF::Close ( )
Code:
click to view
public method Geo::GDAL::VSIF::MkDir ( )
Code:
click to view
public Geo::GDAL::VSIF Geo::GDAL::VSIF::Open ( scalar  filename,
scalar  mode 
)

Class method.

Parameters
filenameName of the file to open. For example "/vsimem/x".
modeAccess mode. 'r', 'r+', 'w', etc.
Returns
A file handle on success.
Code:
click to view
public scalar Geo::GDAL::VSIF::Read ( scalar  count)
Parameters
countThe number of bytes to read from the file.
Returns
A byte string.
Code:
click to view
public list Geo::GDAL::VSIF::ReadDir ( scalar  dir)

Class method.

Returns
Contents of a directory in an anonymous array or as a list.
Code:
click to view
public scalar Geo::GDAL::VSIF::ReadDirRecursive ( scalar  dir)

Class method.

Returns
Contents of a directory tree in an anonymous array.
Code:
click to view
public method Geo::GDAL::VSIF::Rename ( scalar  old,
scalar  new 
)

Class method. Rename a file.

Note
The name of this method is VSIRename in GDAL.
Code:
click to view
public method Geo::GDAL::VSIF::RmDir ( )
Code:
click to view
public method Geo::GDAL::VSIF::Rmdir ( scalar  path)

Class method. Remove a directory.

Note
The name of this method is VSIRmdir in GDAL.
Code:
click to view
public method Geo::GDAL::VSIF::Seek ( scalar  offset,
scalar  whence 
)
Code:
click to view
public list Geo::GDAL::VSIF::Stat ( scalar  filename)

Class method.

Returns
($filemode, $filesize). filemode is f for a plain file, d for a directory, l for a symbolic link, p for a named pipe (FIFO), S for a socket, b for a block special file, and c for a character special file.
Code:
click to view
public scalar Geo::GDAL::VSIF::Tell ( )
Code:
click to view
public method Geo::GDAL::VSIF::Truncate ( scalar  new_size)
Code:
click to view
public method Geo::GDAL::VSIF::Unlink ( scalar  filename)

Class method.

Parameters
filenameThe file to delete.
Returns
0 on success and -1 on an error.
public method Geo::GDAL::VSIF::Write ( scalar  scalar)
Parameters
scalarThe byte string to write to the file.
Returns
Number of bytes written into the file.
Code:
click to view

The documentation for this class was generated from the following file: