|
Geo::GDAL
2.1
|
A set of associated raster bands or vector layer source. More...
Inheritance diagram for Geo::GDAL::Dataset:
Collaboration diagram for Geo::GDAL::Dataset: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, scalar 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. More... | |
| public method | CreateMaskBand () |
| public Geo::GDAL::Dataset | DEMProcessing (scalar Dest, scalar Processing, scalar ColorFilename, scalar 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::OGR::Layer | ExecuteSQL (scalar statement, scalar geom=undef, scalar dialect="") |
| public method | Extent () |
| public list | GCPs (array GCPs, Geo::OSR::SpatialReference sr) |
| public Geo::GDAL::GeoTransform | GeoTransform (Geo::GDAL::GeoTransform scalar geo_transform) |
| public Geo::GDAL::Driver | GetDriver () |
| public list | GetFileList () |
| public scalar | GetGCPProjection () |
| public Geo::OGR::Layer | GetLayer (scalar name) |
| public list | GetLayerNames () |
| public method | GetStyleTable () |
| public Geo::GDAL::Dataset | Grid (scalar Dest, scalar Options) |
| public scalar | Info (scalar Options) |
| public Geo::GDAL::Dataset | Nearblack (scalar Dest, scalar Options, coderef progress, scalar progress_data) |
| public Geo::GDAL::Dataset | Open () |
| public Geo::GDAL::Dataset | OpenShared () |
| public Geo::GDAL::Dataset | Rasterize (scalar Dest, scalar Options, coderef progress, scalar progress_data) |
| public scalar | ReadRaster (hash params) |
| public method | ReadTile () |
| public method | ReleaseResultSet (scalar layer) |
| 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 () |
| public Geo::GDAL::Dataset | Translate (scalar Dest, scalar Options, coderef progress, scalar progress_data) |
| public Geo::GDAL::Dataset | Warp (scalar Dest, scalar 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 method | Domains () |
| 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 | 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 () |
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 | ( | ) |
Code:
| public method Geo::GDAL::Dataset::AddBand | ( | scalar | datatype = 'Byte', |
| hashref | options = {} |
||
| ) |
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. |
Code:
| 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 |
Code:
| 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] |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::BuildVRT | ( | scalar | Dest, |
| arrayref | Sources, | ||
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-' and the values must be strings. For example give { r => 'cubic' } to select a resampling algorithm. For a list the options are given as for the command line utility. See gdalbuildvrt for a complete list of options. |
Code:
| public method Geo::GDAL::Dataset::CommitTransaction | ( | ) |
Code:
| public Geo::GDAL::ColorTable Geo::GDAL::Dataset::ComputeColorTable | ( | hash | params | ) |
Object method. Compute a color table from an RGB image
| params | Named parameters:
|
Code:
| 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. |
Code:
| public Geo::OGR::Layer Geo::GDAL::Dataset::CreateLayer | ( | hash | params | ) |
Create a new vector layer into this dataset.
Object method.
| %params | Named parameters:
|
Example:
Code:
| public method Geo::GDAL::Dataset::CreateMaskBand | ( | ) |
Object method. Add a mask band to the dataset.
Code:
| 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. |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::DEMProcessing | ( | scalar | Dest, |
| scalar | Processing, | ||
| scalar | ColorFilename, | ||
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { of => 'PNG' } to set the output format. For a list the options are given as for the command line utility. See gdaldem for all options. |
| progress | [optional] A reference to a subroutine, which will be called with parameters (number progress, string msg, progress_data). |
| progress_data | [optional] |
Code:
| 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.
Code:
| public method Geo::GDAL::Dataset::Domains | ( | ) |
Code:
| 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 |
Code:
| public method Geo::GDAL::Dataset::Extent | ( | ) |
Code:
| 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. |
Code:
| 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] |
Code:
| public Geo::GDAL::Driver Geo::GDAL::Dataset::GetDriver | ( | ) |
Object method.
Code:
| public list Geo::GDAL::Dataset::GetFileList | ( | ) |
| public scalar Geo::GDAL::Dataset::GetGCPProjection | ( | ) |
Object method.
Code:
| 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. |
Code:
| public list Geo::GDAL::Dataset::GetLayerNames | ( | ) |
Object method.
Code:
| public method Geo::GDAL::Dataset::GetStyleTable | ( | ) |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::Grid | ( | scalar | Dest, |
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { of => 'PNG' } to set the output format. You must specify at least layer name (key = l) or SQL to create a layer (key = sql). For a list the options are given as for the command line utility. See gdal_grid for a complete list of options. |
Code:
| public scalar Geo::GDAL::Dataset::Info | ( | scalar | Options | ) |
Object method. Information about this dataset.
| Options | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { JSON => 1 } to set the output format to JSON. For a list the options are given as for the command line utility. See gdalinfo for all options. |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::Nearblack | ( | scalar | Dest, |
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { of => 'PNG' } to set the output format. For a list the options are given as for the command line utility. See nearblack for all options. |
Code:
| 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, |
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-' and the values must be strings. For example give { of => 'PNG' } to set the output format. You must specify at least layer name (key = l) or SQL to create a layer (key = sql). To create a new raster, you need to specify either target resolution (tr => xres,yres) or target file size (ts => width,height). For a list the options are given as for the command line utility.See gdal_rasterize for a complete list of options. |
Code:
| public scalar Geo::GDAL::Dataset::ReadRaster | ( | hash | params | ) |
Object method. Read data from the dataset.
| params | Named parameters:
|
Entry in GDAL docs (method RasterIO)
Code:
| public method Geo::GDAL::Dataset::ReadTile | ( | ) |
Code:
| public method Geo::GDAL::Dataset::ReleaseResultSet | ( | scalar | layer | ) |
Object method.
| layer | A layer the has been created with ExecuteSQL. |
Code:
| public method Geo::GDAL::Dataset::RollbackTransaction | ( | ) |
Code:
| public method Geo::GDAL::Dataset::SetStyleTable | ( | ) |
Code:
| public list Geo::GDAL::Dataset::Size | ( | ) |
Object method.
Code:
| 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. |
Code:
| public method Geo::GDAL::Dataset::StartTransaction | ( | ) |
Code:
| public method Geo::GDAL::Dataset::TestCapability | ( | ) |
Code:
| public method Geo::GDAL::Dataset::Tile | ( | ) |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::Translate | ( | scalar | Dest, |
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { of => 'PNG' } to set the output format. For a list the options are given as for the command line utility. See gdal_translate and ogr2ogr for all options. |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::Warp | ( | scalar | Dest, |
| scalar | 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 | A reference to a hash or list of options. For a hash the keys are without the prefix '-'. For example give { of => 'PNG' } to set the output format. For a list the options are given as for the command line utility. See gdalwarp for all options. |
Code:
| public Geo::GDAL::Dataset Geo::GDAL::Dataset::Warped | ( | hash | params | ) |
Object method. Create a virtual warped dataset from this dataset.
| params | Named parameters:
|
Code:
| public method Geo::GDAL::Dataset::WriteRaster | ( | hash | params | ) |
Object method. Write data into the dataset.
| params | Named parameters:
|
Entry in GDAL docs (method RasterIO)
Code:
| public method Geo::GDAL::Dataset::WriteTile | ( | ) |
Code: