Geo::GDAL
2.2
|
A set of associated raster bands or vector layer source. More...
Public Member Functions | |
public method | AddBand (scalar datatype= 'Byte', hashref options={}) |
public Geo::GDAL::Band | Band (scalar index) |
public list | Bands () |
public method | BuildOverviews (scalar resampling, arrayref overviews, coderef progress, scalar progress_data) |
public Geo::GDAL::Dataset | BuildVRT (scalar Dest, arrayref Sources, hashref Options, coderef progress, scalar progress_data) |
public method | CommitTransaction () |
public Geo::GDAL::ColorTable | ComputeColorTable (hash params) |
public Geo::OGR::Layer | CopyLayer (scalar layer, scalar name, hashref options=undef) |
public Geo::OGR::Layer | CreateLayer (hash params) |
Create a new vector layer into this dataset. | |
public method | CreateMaskBand () |
public Geo::GDAL::Dataset | DEMProcessing (scalar Dest, scalar Processing, scalar ColorFilename, hashref Options, coderef progress, scalar progress_data) |
public method | Dataset () |
public method | DeleteLayer (scalar name) |
public Geo::GDAL::Band | Dither (hash params) |
public method | Domains () |
public Geo::GDAL::Driver | Driver () |
public Geo::OGR::Layer | ExecuteSQL (scalar statement, scalar geom=undef, scalar dialect="") |
public Geo::GDAL::Extent | Extent (array params) |
public list | GCPs (array GCPs, Geo::OSR::SpatialReference sr) |
public Geo::GDAL::GeoTransform | GeoTransform (Geo::GDAL::GeoTransform scalar geo_transform) |
public method | GetDriver () |
public list | GetFileList () |
public scalar | GetGCPProjection () |
public Geo::OGR::Layer | GetLayer (scalar name) |
public list | GetLayerNames () |
public method | GetNextFeature () |
public method | GetStyleTable () |
public Geo::GDAL::Dataset | Grid (scalar Dest, hashref Options) |
public scalar | Info (hashref Options) |
public Geo::GDAL::Dataset | Nearblack (scalar Dest, hashref Options, coderef progress, scalar progress_data) |
public Geo::GDAL::Dataset | Open () |
public Geo::GDAL::Dataset | OpenShared () |
public method | RELEASE_PARENT () |
public Geo::GDAL::Dataset | Rasterize (scalar Dest, hashref Options, coderef progress, scalar progress_data) |
public scalar | ReadRaster (hash params) |
public method | ReadTile () |
public method | ReleaseResultSet (scalar layer) |
public method | ResetReading () |
public method | RollbackTransaction () |
public method | SetStyleTable () |
public list | Size () |
public Geo::OSR::SpatialReference | SpatialReference (Geo::OSR::SpatialReference sr) |
public method | StartTransaction () |
public method | TestCapability () |
public method | Tile (Geo::GDAL::Extent e) |
public Geo::GDAL::Dataset | Translate (scalar Dest, hashref Options, coderef progress, scalar progress_data) |
public Geo::GDAL::Dataset | Warp (scalar Dest, hashref Options, coderef progress, scalar progress_data) |
public Geo::GDAL::Dataset | Warped (hash params) |
public method | WriteRaster (hash params) |
public method | WriteTile () |
Public Member Functions inherited from Geo::GDAL::MajorObject | |
public scalar | Description (scalar description) |
public scalar | GetDescription () |
public hash reference | GetMetadata (scalar domain="") |
public method | GetMetadataDomainList () |
public hash reference | Metadata (hashref metadata=undef, scalar domain= '') |
public method | SetDescription (scalar NewDesc) |
public method | SetMetadata (hashref metadata, scalar domain="") |
Public Member Functions inherited from Geo::GDAL | |
public method | ApplyVerticalShiftGrid () |
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 method | IdentifyDriverEx () |
public Geo::GDAL::Dataset | Open (hash params) |
public Geo::GDAL::Dataset | OpenEx (hash params) |
public list | OpenFlags () |
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 () |
public method | i2s () |
public method | keep () |
public method | note () |
public method | parent () |
public method | s2i () |
public method | s_exists () |
public method | unkeep () |
public method | unnote () |
Public Attributes | |
scalar | RasterCount |
scalar (access as $dataset->{RasterCount}) | |
scalar | RasterXSize |
scalar (access as $dataset->{RasterXSize}) | |
scalar | RasterYSize |
scalar (access as $dataset->{RasterYSize}) |
public method Geo::GDAL::Dataset::Dataset | ( | ) |
public method Geo::GDAL::Dataset::AddBand | ( | scalar | datatype = 'Byte' | ) |
Object method. Add a new band to the dataset. The driver must support the action.
datatype | GDAL raster cell data type (one of those listed by Geo::GDAL::DataTypes). |
options | reference to a hash of format specific options. |
public Geo::GDAL::Band Geo::GDAL::Dataset::Band | ( | scalar | index | ) |
Object method. Create a band object for the band within the dataset.
index | 1...RasterCount, default is 1. |
public list Geo::GDAL::Dataset::Bands | ( | ) |
public method Geo::GDAL::Dataset::BuildOverviews | ( | scalar | resampling, |
arrayref | overviews, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method.
resampling | the resampling method, one of Geo::GDAL::RIOResamplingTypes. |
overviews | The list of overview decimation factors to build. For example [2,4,8]. |
progress | [optional] a reference to a subroutine, which will be called with parameters (number progress, string msg, progress_data) |
progress_data | [optional] |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::BuildVRT | ( | scalar | Dest, |
arrayref | Sources, | ||
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Build a virtual dataset from a set of datasets.
Dest | Destination raster dataset definition string (typically filename), or an object, which implements write and close. |
Sources | A list of filenames of input datasets or a list of dataset objects. |
Options | See section Processing options. |
public method Geo::GDAL::Dataset::CommitTransaction | ( | ) |
public Geo::GDAL::ColorTable Geo::GDAL::Dataset::ComputeColorTable | ( | hash | params | ) |
Object method. Compute a color table from an RGB image
params | Named parameters:
|
public Geo::OGR::Layer Geo::GDAL::Dataset::CopyLayer | ( | scalar | layer, |
scalar | name, | ||
hashref | options = undef |
||
) |
Object method.
layer | A Geo::OGR::Layer object to be copied. |
name | A name for the new layer. |
options | A ref to a hash of format specific options. |
public Geo::OGR::Layer Geo::GDAL::Dataset::CreateLayer | ( | hash | params | ) |
Create a new vector layer into this dataset.
Object method.
%params | Named parameters:
|
Example:
public method Geo::GDAL::Dataset::CreateMaskBand | ( | ) |
Object method. Add a mask band to the dataset.
public method Geo::GDAL::Dataset::DeleteLayer | ( | scalar | name | ) |
Object method. Deletes a layer from the data source. Note that if there is a layer object for the deleted layer, it becomes unusable.
name | name of the layer to delete. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::DEMProcessing | ( | scalar | Dest, |
scalar | Processing, | ||
scalar | ColorFilename, | ||
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Apply a DEM processing to this dataset.
Dest | Destination raster dataset definition string (typically filename) or an object, which implements write and close. |
Processing | Processing to apply, one of "hillshade", "slope", "aspect", "color-relief", "TRI", "TPI", or "Roughness". |
ColorFilename | The color palette for color-relief. |
Options | See section Processing options. |
progress | [optional] A reference to a subroutine, which will be called with parameters (number progress, string msg, progress_data). |
progress_data | [optional] |
public Geo::GDAL::Band Geo::GDAL::Dataset::Dither | ( | hash | params | ) |
Object method. Compute one band with color table image from an RGB image params Named parameters:
Usage example. This code converts an RGB JPEG image into a one band PNG image with a color table.
public method Geo::GDAL::Dataset::Domains | ( | ) |
public Geo::GDAL::Driver Geo::GDAL::Dataset::Driver | ( | ) |
Object method.
public Geo::OGR::Layer Geo::GDAL::Dataset::ExecuteSQL | ( | scalar | statement, |
scalar | geom = undef , |
||
scalar | dialect = "" |
||
) |
Object method.
statement | A SQL statement. |
geom | A Geo::OGR::Geometry object. |
dialect |
public Geo::GDAL::Extent Geo::GDAL::Dataset::Extent | ( | array | params | ) |
Object method.
params | nothing, or a list ($xoff, $yoff, $w, $h) |
public list Geo::GDAL::Dataset::GCPs | ( | array | GCPs, |
Geo::OSR::SpatialReference | sr | ||
) |
Object method. Get or set the GCPs and their projection.
GCPs | [optional] a list of Geo::GDAL::GCP objects |
sr | [optional] the projection of the GCPs. |
public Geo::GDAL::GeoTransform Geo::GDAL::Dataset::GeoTransform | ( | Geo::GDAL::GeoTransform scalar | geo_transform | ) |
Object method. Transformation from cell coordinates (column,row) to projection coordinates (x,y)
geo_transform | [optional] |
public method Geo::GDAL::Dataset::GetDriver | ( | ) |
public list Geo::GDAL::Dataset::GetFileList | ( | ) |
public scalar Geo::GDAL::Dataset::GetGCPProjection | ( | ) |
Object method.
public Geo::OGR::Layer Geo::GDAL::Dataset::GetLayer | ( | scalar | name | ) |
Object method.
name | the name of the requested layer. If not given, then returns the first layer in the data source. |
public list Geo::GDAL::Dataset::GetLayerNames | ( | ) |
Object method.
public method Geo::GDAL::Dataset::GetNextFeature | ( | ) |
public method Geo::GDAL::Dataset::GetStyleTable | ( | ) |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Grid | ( | scalar | Dest, |
hashref | Options | ||
) |
Object method. Creates a regular raster grid from this data source. This is equivalent to the gdal_grid utility.
Dest | Destination raster dataset definition string (typically filename) or an object, which implements write and close. |
Options | See section Processing options. |
public scalar Geo::GDAL::Dataset::Info | ( | hashref | Options | ) |
Object method. Information about this dataset.
Options | See section Processing options. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Nearblack | ( | scalar | Dest, |
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Convert nearly black/white pixels to black/white.
Dest | Destination raster dataset definition string (typically filename), destination dataset to which to add an alpha or mask band, or an object, which implements write and close. |
Options | See section Processing options. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Open | ( | ) |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::OpenShared | ( | ) |
Package subroutine. The same as Geo::GDAL::OpenShared
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Rasterize | ( | scalar | Dest, |
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Render data from this data source into a raster.
Dest | Destination raster dataset definition string (typically filename), destination dataset, or an object, which implements write and close. |
Options | See section Processing options. |
public scalar Geo::GDAL::Dataset::ReadRaster | ( | hash | params | ) |
Object method. Read data from the dataset.
params | Named parameters:
|
Entry in GDAL docs (method RasterIO)
public method Geo::GDAL::Dataset::ReadTile | ( | ) |
public method Geo::GDAL::Dataset::RELEASE_PARENT | ( | ) |
public method Geo::GDAL::Dataset::ReleaseResultSet | ( | scalar | layer | ) |
Object method.
layer | A layer the has been created with ExecuteSQL. |
public method Geo::GDAL::Dataset::ResetReading | ( | ) |
public method Geo::GDAL::Dataset::RollbackTransaction | ( | ) |
public method Geo::GDAL::Dataset::SetStyleTable | ( | ) |
public list Geo::GDAL::Dataset::Size | ( | ) |
Object method.
public Geo::OSR::SpatialReference Geo::GDAL::Dataset::SpatialReference | ( | Geo::OSR::SpatialReference | sr | ) |
Object method. Get or set the projection of this dataset.
sr | [optional] a Geo::OSR::SpatialReference object, which replaces the existing projection definition of this dataset. |
public method Geo::GDAL::Dataset::StartTransaction | ( | ) |
public method Geo::GDAL::Dataset::TestCapability | ( | ) |
public method Geo::GDAL::Dataset::Tile | ( | Geo::GDAL::Extent | e | ) |
Object method. Compute the top left cell coordinates and width and height of the tile that covers the given extent.
e | The extent whose tile is needed. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Translate | ( | scalar | Dest, |
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Convert this dataset into another format.
Dest | Destination dataset definition string (typically filename) or an object, which implements write and close. |
Options | See section Processing options. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Warp | ( | scalar | Dest, |
hashref | Options, | ||
coderef | progress, | ||
scalar | progress_data | ||
) |
Object method. Reproject this dataset.
Dest | Destination raster dataset definition string (typically filename) or an object, which implements write and close. |
Options | See section Processing options. |
public Geo::GDAL::Dataset Geo::GDAL::Dataset::Warped | ( | hash | params | ) |
Object method. Create a virtual warped dataset from this dataset.
params | Named parameters:
|
public method Geo::GDAL::Dataset::WriteRaster | ( | hash | params | ) |
Object method. Write data into the dataset.
params | Named parameters:
|
Entry in GDAL docs (method RasterIO)
public method Geo::GDAL::Dataset::WriteTile | ( | ) |