Geo::GDAL
2.1
|
GDAL utility functions and a root class for raster classes. More...
Classes | |
class | AsyncReader |
Enable asynchronous requests. More... | |
class | Band |
A raster band. More... | |
class | ColorTable |
A color table from a raster band or a color table, which can be used for a band. More... | |
class | Dataset |
A set of associated raster bands or vector layer source. More... | |
class | Driver |
A driver for a specific dataset format. More... | |
class | Extent |
class | GCP |
A ground control point for georeferencing rasters. More... | |
class | GeoTransform |
An array of affine transformation coefficients. More... | |
class | MajorObject |
An object, which holds meta data. More... | |
class | RasterAttributeTable |
An attribute table in a raster band. More... | |
class | Transformer |
This class is not yet documented for the GDAL Perl bindings. More... | |
class | VSIF |
A GDAL virtual file system. More... | |
class | XML |
A simple XML parser. More... | |
Public Member Functions | |
public method | BuildVRT () |
public method | CPLBinaryToHex () |
public method | CPLHexToBinary () |
public method | CreatePansharpenedVRT () |
public scalar | DataTypeIsComplex (scalar DataType) |
public list | DataTypeValueRange (scalar DataType) |
public list | DataTypes () |
public scalar | DecToDMS (scalar angle, scalar axis, scalar precision=2) |
public scalar | DecToPackedDMS (scalar dec) |
public method | DontUseExceptions () |
public Geo::GDAL::Driver | Driver (scalar Name) |
public list | DriverNames () |
public list | Drivers () |
public method | EscapeString () |
public scalar | FindFile (scalar basename) |
public method | FinderClean () |
public method | GOA2GetAccessToken () |
public method | GOA2GetAuthorizationURL () |
public method | GOA2GetRefreshToken () |
public scalar | GetCacheMax () |
public scalar | GetCacheUsed () |
public scalar | GetConfigOption (scalar key) |
public scalar | GetDataTypeSize (scalar DataType) |
public method | GetJPEG2000StructureAsString () |
public Geo::GDAL::Driver | IdentifyDriver (scalar path, scalar siblings) |
public Geo::GDAL::Dataset | Open (hash params) |
public Geo::GDAL::Dataset | OpenEx (hash params) |
public list | OpenFlags () |
public Geo::GDAL::Dataset | OpenShared (scalar name, scalar access= 'ReadOnly') |
public scalar | PackCharacter (scalar DataType) |
public scalar | PackedDMSToDec (scalar packed) |
public method | PopFinderLocation () |
public method | PushFinderLocation (scalar path) |
public list | RIOResamplingTypes () |
public list | ResamplingTypes () |
public method | SetCacheMax (scalar Bytes) |
public method | SetConfigOption (scalar key, scalar value) |
public method | UseExceptions () |
public method | VSIFOpenExL () |
public method | VSIGetLastErrorMsg () |
public method | VSIGetLastErrorNo () |
public scalar | VersionInfo (scalar request= 'VERSION_NUM') |
public scalar | errstr () |
GDAL utility functions and a root class for raster classes.
Geo::GDAL wraps many GDAL utility functions and is as a root class for all GDAL raster classes. A "raster" is an object, whose core is a rectagular grid of cells, called a "band" in GDAL. Each cell contains a numeric value of a specific data type.
public method Geo::GDAL::BuildVRT | ( | ) |
public method Geo::GDAL::CPLBinaryToHex | ( | ) |
public method Geo::GDAL::CPLHexToBinary | ( | ) |
public method Geo::GDAL::CreatePansharpenedVRT | ( | ) |
public scalar Geo::GDAL::DataTypeIsComplex | ( | scalar | DataType | ) |
Package subroutine.
DataType | A GDAL raster cell data type (one of those listed by Geo::GDAL::DataTypes). |
public list Geo::GDAL::DataTypes | ( | ) |
Package subroutine.
public list Geo::GDAL::DataTypeValueRange | ( | scalar | DataType | ) |
Package subroutine.
DataType | Data type (one of those listed by Geo::GDAL::DataTypes). |
public scalar Geo::GDAL::DecToDMS | ( | scalar | angle, |
scalar | axis, | ||
scalar | precision = 2 |
||
) |
Package subroutine. Convert decimal degrees to degrees, minutes, and seconds string
angle | A number |
axis | A string specifying latitude or longitude ('Long'). |
precision |
public scalar Geo::GDAL::DecToPackedDMS | ( | scalar | dec | ) |
Package subroutine.
dec | Decimal degrees |
public method Geo::GDAL::DontUseExceptions | ( | ) |
Package subroutine. Do not use the Perl exception mechanism for GDAL messages. Instead the messages are printed to standard error.
public Geo::GDAL::Driver Geo::GDAL::Driver | ( | scalar | Name | ) |
Package subroutine. Access a format driver.
Name | The short name of the driver. One of Geo::GDAL::DriverNames or Geo::OGR::DriverNames. |
public list Geo::GDAL::DriverNames | ( | ) |
Package subroutine. Available raster format drivers.
public list Geo::GDAL::Drivers | ( | ) |
Package subroutine.
public scalar Geo::GDAL::errstr | ( | ) |
Package subroutine. Clear the error stack and return all generated GDAL error messages in one (possibly multiline) string.
public method Geo::GDAL::EscapeString | ( | ) |
public method Geo::GDAL::FinderClean | ( | ) |
Package subroutine. Clear the set of support file search paths.
public scalar Geo::GDAL::FindFile | ( | scalar | basename | ) |
Package subroutine. Search for GDAL support files.
An example:
Prints (for example):
basename | The name of the file to search for. For example 'pcs.csv'. |
public scalar Geo::GDAL::GetCacheMax | ( | ) |
Package subroutine.
public scalar Geo::GDAL::GetCacheUsed | ( | ) |
Package subroutine.
public scalar Geo::GDAL::GetConfigOption | ( | scalar | key | ) |
Package subroutine.
key | A GDAL config option. Consult the GDAL documentation for available options and their use. |
public scalar Geo::GDAL::GetDataTypeSize | ( | scalar | DataType | ) |
Package subroutine.
DataType | A GDAL raster cell data type (one of those listed by Geo::GDAL::DataTypes). |
public method Geo::GDAL::GetJPEG2000StructureAsString | ( | ) |
public method Geo::GDAL::GOA2GetAccessToken | ( | ) |
public method Geo::GDAL::GOA2GetAuthorizationURL | ( | ) |
public method Geo::GDAL::GOA2GetRefreshToken | ( | ) |
public Geo::GDAL::Driver Geo::GDAL::IdentifyDriver | ( | scalar | path, |
scalar | siblings | ||
) |
Package subroutine.
path | a dataset path. |
siblings | [optional] A list of names of files that belong to the data format. |
public Geo::GDAL::Dataset Geo::GDAL::Open | ( | hash | params | ) |
Package subroutine. Open a dataset. An example, which opens an existing raster dataset for editing:
params | Named parameters:
|
public Geo::GDAL::Dataset Geo::GDAL::OpenEx | ( | hash | params | ) |
Package subroutine. The generic dataset open method, used internally by all Open and OpenShared methods.
params | Named parameters:
|
An example
public list Geo::GDAL::OpenFlags | ( | ) |
public Geo::GDAL::Dataset Geo::GDAL::OpenShared | ( | scalar | name, |
scalar | access = 'ReadOnly' |
||
) |
Package subroutine. Open a raster dataset in shared mode.
name | Raster dataset string (typically a filename). |
access | Access type, either 'ReadOnly' (the default) or 'Update'. |
public scalar Geo::GDAL::PackCharacter | ( | scalar | DataType | ) |
Package subroutine. Get the character that is needed for Perl's pack and unpack when they are used with Geo::GDAL::Band::ReadRaster and Geo::GDAL::Band::WriteRaster. Note that Geo::GDAL::Band::ReadTile and Geo::GDAL::Band::WriteTile have simpler interfaces that do not require pack and unpack.
DataType | A GDAL raster cell data type, typically from $band->DataType. |
public scalar Geo::GDAL::PackedDMSToDec | ( | scalar | packed | ) |
Package subroutine.
packed | DMS as a number DDDMMMSSS.SS |
public method Geo::GDAL::PopFinderLocation | ( | ) |
Package subroutine. Remove the latest addition from the set of support file search paths. Note that calling this subroutine may remove paths GDAL put into the finder.
public method Geo::GDAL::PushFinderLocation | ( | scalar | path | ) |
Package subroutine. Add a path to the set of paths from where GDAL support files are sought. Note that GDAL puts initially into the finder the current directory and value of GDAL_DATA environment variable (if it exists), installation directory (prepended with '/share/gdal' or '/Resources/gdal'), or '/usr/local/share/gdal'. It is usually only needed to add paths to the finder if using an alternate set of data files or a non-installed GDAL is used (as in testing).
public list Geo::GDAL::ResamplingTypes | ( | ) |
Package subroutine.
public list Geo::GDAL::RIOResamplingTypes | ( | ) |
Package subroutine.
public method Geo::GDAL::SetCacheMax | ( | scalar | Bytes | ) |
Package subroutine.
Bytes | New maximum amount of memory for caching within GDAL. |
public method Geo::GDAL::SetConfigOption | ( | scalar | key, |
scalar | value | ||
) |
Package subroutine.
key | A GDAL config option. Consult the GDAL documentation for available options and their use. |
value | A value for the option, typically 'YES', 'NO', undef, path, numeric value, or a filename. |
public method Geo::GDAL::UseExceptions | ( | ) |
Package subroutine. Use the Perl exception mechanism for GDAL messages (failures are confessed and warnings are warned) and collect the messages into @Geo::GDAL::error. This is the default.
public scalar Geo::GDAL::VersionInfo | ( | scalar | request = 'VERSION_NUM' | ) |
Package subroutine.
request | A string specifying the request. Currently either "VERSION_NUM", "RELEASE_DATE", "RELEASE_NAME", or "--version". Default is "VERSION_NUM". |
public method Geo::GDAL::VSIFOpenExL | ( | ) |
public method Geo::GDAL::VSIGetLastErrorMsg | ( | ) |
public method Geo::GDAL::VSIGetLastErrorNo | ( | ) |