Inheritance diagram for Geo::GDAL:

Public Functions | |
| list | ReadDir (scalar dir) |
| list | Stat (scalar filename) |
| Unlink (scalar filename) | |
| scalar | VSIFOpenL (scalar filename, scalar mode) |
| VSIFCloseL (scalar file) | |
| scalar | VSIFWriteL (scalar scalar, scalar file) |
| scalar | VSIFReadL (scalar count, scalar file) |
| scalar | VersionInfo (scalar request= 'VERSION_NUM') |
| PushFinderLocation (scalar path) | |
| PopFinderLocation () | |
| FinderClean () | |
| scalar | FindFile (scalar class, scalar basename) |
| SetConfigOption (scalar key, scalar value) | |
| scalar | GetConfigOption (scalar key, scalar default) |
| listref | GCPsToGeoTransform (listref GCPs, scalar ApproxOK=1) |
| scalar | GetCacheMax () |
| SetCacheMax (scalar Bytes) | |
| scalar | GetCacheUsed () |
| scalar | GetDataTypeSize (scalar GDALDataType) |
| list | DataTypeValueRange (scalar DataType) |
| scalar | DataTypeIsComplex (scalar GDALDataType) |
| scalar | DecToDMS (scalar angle, scalar axis, scalar precision=2) |
| scalar | PackedDMSToDec (scalar packed) |
| scalar | DecToPackedDMS (scalar dec) |
| scalar | NodeType (scalar type) |
| listref | ParseXMLString (scalar XML) |
| list | NodeData (scalar node) |
| list | Children (scalar node) |
| list | Child (scalar node, scalar i) |
| scalar | SerializeXMLTree (listref XMLTree) |
| list | Drivers () |
| scalar | GetDriverCount () |
| Geo::GDAL::Driver | Driver (scalar driver) |
| Geo::GDAL::Driver | GetDriverByName (scalar ShortName) |
| Geo::GDAL::Driver | IdentifyDriver (scalar name, scalar siblings) |
| ComputeMedianCutPCT (scalar red, scalar green, scalar blue, scalar num_colors, scalar colors, scalar callback, scalar callback_data) | |
| DitherRGB2PCT (scalar red, scalar green, scalar blue, scalar target, scalar colors, scalar callback, scalar callback_data) | |
| ReprojectImage (scalar src_ds, scalar dst_ds, scalar src_wkt=undef, scalar dst_wkt=undef, scalar ResampleAlg='NearestNeighbour', scalar WarpMemoryLimit=0, scalar maxerror=0.0, scalar callback, scalar callback_data) | |
| Geo::GDAL::Dataset | AutoCreateWarpedVRT (Geo::GDAL::Dataset src, scalar src_wkt=undef, scalar dst_wkt=undef, scalar ResampleAlg='NearestNeighbour', scalar maxerror=0.0) |
| ComputeProximity (Geo::GDAL::Band src, Geo::GDAL::Band proximity, hashref options, scalar callback, scalar callback_data) | |
| RasterizeLayer (Geo::GDAL::Dataset ds, listref bands, Geo::OGR::Layer layer, scalar transformer, scalar arg, listref burn_values, hashref options, scalar callback, scalar callback_data) | |
| Polygonize (Geo::GDAL::Band src, Geo::GDAL::Band mask, Geo::OGR::Layer out, scalar PixValField, hashref options, scalar callback, scalar callback_data) | |
| SieveFilter (Geo::GDAL::Band src, Geo::GDAL::Band mask, Geo::GDAL::Band dst, scalar threshold, scalar connectedness, hashref options, scalar callback, scalar callback_data) | |
| RegenerateOverviews (Geo::GDAL::Band src, listref overviews, scalar resampling, scalar callback, scalar callback_data) | |
| RegenerateOverview (Geo::GDAL::Band src, Geo::GDAL::Band overview, scalar resampling, scalar callback, scalar callback_data) | |
| listref | GeneralCmdLineProcessor (listref argv, scalar options=0) |
| scalar | PackCharacter (scalar DataType) |
| Geo::GDAL::Dataset | Open (scalar name, scalar access='ReadOnly') |
| Geo::GDAL::Dataset | OpenShared (scalar name, scalar access='ReadOnly') |
| scalar | GetDataTypeName (scalar GDALDataType) |
| scalar | GetDataTypeByName (scalar GDALDataType) |
| scalar | GetColorInterpretationName (scalar ColorInterpretation) |
| scalar | GetPaletteInterpretationName (scalar PaletteInterpretation) |
Classes | |
| class | AsyncReader |
| class | Band |
| class | ColorTable |
| class | Const |
| class | Dataset |
| class | Driver |
| class | GCP |
| class | MajorObject |
| class | RasterAttributeTable |
| class | Transformer |
| Geo::GDAL::Dataset Geo::GDAL::AutoCreateWarpedVRT | ( | Geo::GDAL::Dataset | src, | |
| scalar | src_wkt = undef, |
|||
| scalar | dst_wkt = undef, |
|||
| scalar | ResampleAlg = 'NearestNeighbour', |
|||
| scalar | maxerror = 0.0 | |||
| ) |
| src | ||
| src_wkt | A WKT string. | |
| dst_wkt | A WKT string. | |
| ResampleAlg | one of 'NearestNeighbour', 'Bilinear', 'Cubic', or 'CubicSpline'. | |
| maxerror |
| list Geo::GDAL::Child | ( | scalar | node, | |
| scalar | i | |||
| ) |
| node | ||
| i | 0 .. number of children - 1 |
| list Geo::GDAL::Children | ( | scalar | node | ) |
| node |
| Geo::GDAL::ComputeMedianCutPCT | ( | scalar | red, | |
| scalar | green, | |||
| scalar | blue, | |||
| scalar | num_colors, | |||
| scalar | colors, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
Compute an "optimal" color table for a three band image.
| red | a Geo::GDAL::Band object | |
| green | a Geo::GDAL::Band object | |
| blue | a Geo::GDAL::Band object | |
| num_colors | the desired number of colors | |
| colors | an empty Geo::GDAL::ColorTable object | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| Geo::GDAL::ComputeProximity | ( | Geo::GDAL::Band | src, | |
| Geo::GDAL::Band | proximity, | |||
| hashref | options, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| src | The raster from which the proximities are computed from. | |
| proximity | The raster to which the proximities are computed to. | |
| options | Options. Supported key, value pairs are
| |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| scalar Geo::GDAL::DataTypeIsComplex | ( | scalar | GDALDataType | ) |
| GDALDataType | An integer (one of keys of Geo::GDAL::TYPE_INT2STRING hash). |
| list Geo::GDAL::DataTypeValueRange | ( | scalar | DataType | ) |
| DataType | Data type as string (one of Byte UInt16 Int16 UInt32 Int32 Float32 Float64 CInt16 CInt32 CFloat32 CFloat64). |
| scalar Geo::GDAL::DecToDMS | ( | scalar | angle, | |
| scalar | axis, | |||
| scalar | precision = 2 | |||
| ) |
Convert decimal degrees to degrees, minutes, and seconds string
| angle | A number | |
| axis | A string specifying latitude or longitude ('Long'). | |
| precision |
| scalar Geo::GDAL::DecToPackedDMS | ( | scalar | dec | ) |
| dec | Decimal degrees |
| Geo::GDAL::DitherRGB2PCT | ( | scalar | red, | |
| scalar | green, | |||
| scalar | blue, | |||
| scalar | target, | |||
| scalar | colors, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
Dither a three band image into one band using a color table.
| red | a Geo::GDAL::Band object | |
| green | a Geo::GDAL::Band object | |
| blue | a Geo::GDAL::Band object | |
| target | a Geo::GDAL::Band object | |
| colors | a Geo::GDAL::ColorTable object | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| Geo::GDAL::Driver Geo::GDAL::Driver | ( | scalar | driver | ) |
Create a driver object for the internal GDAL driver.
| driver | The name or number of the driver. |
| list Geo::GDAL::Drivers | ( | ) |
An example:
use Geo::GDAL; for my $driver (Geo::GDAL::Drivers) { print $driver->{ShortName},"\n"; }
| Geo::GDAL::FinderClean | ( | ) |
Clear the set of support file search paths.
| scalar Geo::GDAL::FindFile | ( | scalar | class, | |
| scalar | basename | |||
| ) |
Search for GDAL support files.
An example:
use Geo::GDAL; $a = Geo::GDAL::FindFile('gdal', 'pcs.csv'); print STDERR "$a\n";
c:\msys\1.0\local\share\gdal\pcs.csv
| class | The class of files to search for. For example 'gdal'. | |
| basename | The basename of the file to search for. For example 'pcs.csv'. |
| listref Geo::GDAL::GCPsToGeoTransform | ( | listref | GCPs, | |
| scalar | ApproxOK = 1 | |||
| ) |
Compute transformation coefficients from a set of Geo::GDAL::GCP objects The geo transformation has the form
x = a + column * b + row * c y = d + column * e + row * f
| GCPs | A set of Geo::GDAL::GCP objects. | |
| ApproxOK | Minimize the error in the coefficient. |
| listref Geo::GDAL::GeneralCmdLineProcessor | ( | listref | argv, | |
| scalar | options = 0 | |||
| ) |
| argv | ||
| options | integer |
| scalar Geo::GDAL::GetCacheMax | ( | ) |
| scalar Geo::GDAL::GetCacheUsed | ( | ) |
| scalar Geo::GDAL::GetColorInterpretationName | ( | scalar | ColorInterpretation | ) |
| scalar Geo::GDAL::GetConfigOption | ( | scalar | key, | |
| scalar | default | |||
| ) |
| scalar Geo::GDAL::GetDataTypeByName | ( | scalar | GDALDataType | ) |
| scalar Geo::GDAL::GetDataTypeName | ( | scalar | GDALDataType | ) |
| scalar Geo::GDAL::GetDataTypeSize | ( | scalar | GDALDataType | ) |
| GDALDataType | An integer (one of keys of Geo::GDAL::TYPE_INT2STRING hash). |
| Geo::GDAL::Driver Geo::GDAL::GetDriverByName | ( | scalar | ShortName | ) |
| scalar Geo::GDAL::GetDriverCount | ( | ) |
| scalar Geo::GDAL::GetPaletteInterpretationName | ( | scalar | PaletteInterpretation | ) |
| Geo::GDAL::Driver Geo::GDAL::IdentifyDriver | ( | scalar | name, | |
| scalar | siblings | |||
| ) |
| name | A dataset path. | |
| siblings | [optional] A list of names of files in the directory specified by name. |
| list Geo::GDAL::NodeData | ( | scalar | node | ) |
| node |
| scalar Geo::GDAL::NodeType | ( | scalar | type | ) |
Convert between integer and string expressions of CPLXMLNodeTypes
| type |
| Geo::GDAL::Dataset Geo::GDAL::Open | ( | scalar | name, | |
| scalar | access = 'ReadOnly' | |||
| ) |
An example
use Geo::GDAL; $ds = Geo::GDAL::Open('existing.tiff', 'Update');
| name | ||
| access | either 'ReadOnly' or 'Update' |
Reimplemented in Geo::GDAL::Dataset.
| Geo::GDAL::Dataset Geo::GDAL::OpenShared | ( | scalar | name, | |
| scalar | access = 'ReadOnly' | |||
| ) |
| name | ||
| access | either 'ReadOnly' or 'Update' |
Reimplemented in Geo::GDAL::Dataset.
| scalar Geo::GDAL::PackCharacter | ( | scalar | DataType | ) |
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 | GDAL data type value, typically from $band->{DataType} |
| scalar Geo::GDAL::PackedDMSToDec | ( | scalar | packed | ) |
| packed | DMS as a number DDDMMMSSS.SS |
| listref Geo::GDAL::ParseXMLString | ( | scalar | XML | ) |
Parses a given XML into an array of arrays and returns a reference to that. An array in the structure is: (CPLXMLNodeType, value, child, child, ...). CPLXMLNodeType is an integer.
| XML |
| Geo::GDAL::Polygonize | ( | Geo::GDAL::Band | src, | |
| Geo::GDAL::Band | mask, | |||
| Geo::OGR::Layer | out, | |||
| scalar | PixValField, | |||
| hashref | options, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| src | ||
| mask | All pixels in the mask band with a value other than zero will be considered suitable for collection as polygons. Must be undef if not used. | |
| out | ||
| PixValField | The index (or name) of the field in output layer into which the pixel value of the polygon should be written. | |
| options | Not used. | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| Geo::GDAL::PopFinderLocation | ( | ) |
Remove the latest addition from the set of support file search paths.
| Geo::GDAL::PushFinderLocation | ( | scalar | path | ) |
Add a path to the set of paths from where GDAL support files are sought.
| Geo::GDAL::RasterizeLayer | ( | Geo::GDAL::Dataset | ds, | |
| listref | bands, | |||
| Geo::OGR::Layer | layer, | |||
| scalar | transformer, | |||
| scalar | arg, | |||
| listref | burn_values, | |||
| hashref | options, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| ds | ||
| bands | A reference to a list of bands to be updated. | |
| layer | ||
| transformer | Not supported, must be undef. | |
| arg | Transformer argument, must be undef. | |
| burn_values | Values to be used for burning the geometries. One for each layer. | |
| options | Not used. | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| list Geo::GDAL::ReadDir | ( | scalar | dir | ) |
| Geo::GDAL::RegenerateOverview | ( | Geo::GDAL::Band | src, | |
| Geo::GDAL::Band | overview, | |||
| scalar | resampling, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| src | ||
| overview | ||
| resampling | 'NEAREST', 'AVERAGE', or 'GAUSS' | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| Geo::GDAL::RegenerateOverviews | ( | Geo::GDAL::Band | src, | |
| listref | overviews, | |||
| scalar | resampling, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| src | ||
| overviews | A list of Geo::GDAL::Band's for the overviews. | |
| resampling | 'NEAREST', 'AVERAGE', or 'GAUSS' | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| Geo::GDAL::ReprojectImage | ( | scalar | src_ds, | |
| scalar | dst_ds, | |||
| scalar | src_wkt = undef, |
|||
| scalar | dst_wkt = undef, |
|||
| scalar | ResampleAlg = 'NearestNeighbour', |
|||
| scalar | WarpMemoryLimit = 0, |
|||
| scalar | maxerror = 0.0, |
|||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
| src_ds | Source dataset. | |
| dst_ds | Destination dataset. | |
| src_wkt | Source projection as a WKT. | |
| dst_wkt | Destination projection as a WKT. | |
| ResampleAlg | One of NearestNeighbour Bilinear Cubic or CubicSpline. | |
| WarpMemoryLimit | The amount of memory allowed for caching. Default is 0, i.e., no limit. | |
| maxerror | Maximum error measured in input pixels that is allowed in approximating the transformation. Default is 0.0, i.e., exact calculations. | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data). Reprojection is terminated if the progress function returns 0. | |
| callback_data | [optional] |
| scalar Geo::GDAL::SerializeXMLTree | ( | listref | XMLTree | ) |
| XMLTree |
| Geo::GDAL::SetCacheMax | ( | scalar | Bytes | ) |
| Bytes | New maximum amount of memory for caching within GDAL. |
| Geo::GDAL::SetConfigOption | ( | scalar | key, | |
| scalar | value | |||
| ) |
| key | A GDAL config option. Possible values include 'GDAL_FORCE_CACHING', 'USE_RRD', GDAL_DATA', 'GDAL_SKIP', 'GDAL_DRIVER_PATH', 'GDAL_IGNORE_AXIS_ORIENTATION', 'GMLJP2OVERRIDE', 'GDAL_DISABLE_READDIR_ON_OPEN', 'GDAL_PAM_ENABLED', 'GDAL_PAM_MODE', 'GDAL_PAM_PROXY_DIR', 'GDAL_MAX_DATASET_POOL_SIZE', 'GDAL_FORCE_CACHING', 'GDAL_CACHEMAX', 'GDAL_SWATH_SIZE', 'PROJSO', 'CENTER_LONG', 'OGR_DEBUG_ORGANIZE_POLYGONS', 'OGR_ORGANIZE_POLYGONS', and 'GDAL_JP2K_ALT_OFFSETVECTOR_ORDER'. Consult the GDAL main documentation for the semantics of config options. | |
| value | A value for the option, typically 'YES', 'NO', undef, a path, or a filename. |
| Geo::GDAL::SieveFilter | ( | Geo::GDAL::Band | src, | |
| Geo::GDAL::Band | mask, | |||
| Geo::GDAL::Band | dst, | |||
| scalar | threshold, | |||
| scalar | connectedness, | |||
| hashref | options, | |||
| scalar | callback, | |||
| scalar | callback_data | |||
| ) |
Removes small raster polygons.
| src | ||
| mask | ||
| dst | ||
| threshold | An integer. | |
| connectedness | 4 or 8 | |
| options | Not used. | |
| callback | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, callback_data) | |
| callback_data | [optional] |
| list Geo::GDAL::Stat | ( | scalar | filename | ) |
| Geo::GDAL::Unlink | ( | scalar | filename | ) |
| filename | The file to delete. |
| scalar Geo::GDAL::VersionInfo | ( | scalar | request = 'VERSION_NUM' |
) |
| request | A string specifying the request. Currently either "VERSION_NUM", "RELEASE_DATE", "RELEASE_NAME", or "--version". Default is "VERSION_NUM". |
| Geo::GDAL::VSIFCloseL | ( | scalar | file | ) |
| file | The file handle. |
| scalar Geo::GDAL::VSIFOpenL | ( | scalar | filename, | |
| scalar | mode | |||
| ) |
| filename | Name of the file to open. For example "/vsimem/x". | |
| mode | Access mode. 'r', 'r+', 'w', etc. |
| scalar Geo::GDAL::VSIFReadL | ( | scalar | count, | |
| scalar | file | |||
| ) |
| count | The number of bytes to read from the file. | |
| file | The file handle. |
| scalar Geo::GDAL::VSIFWriteL | ( | scalar | scalar, | |
| scalar | file | |||
| ) |
| scalar | The byte string to write to the file. | |
| file | The file handle. |
1.4.7