Geo::GDAL  2.0
Geo::GDAL::ColorTable Class Reference

A color table in a raster band. More...

+ Inheritance diagram for Geo::GDAL::ColorTable:
+ Collaboration diagram for Geo::GDAL::ColorTable:

Public Member Functions

public Geo::GDAL::ColorTable Clone ()
 
public list ColorEntries (array color_entries)
 
public list ColorEntry (scalar i, array color)
 
public list ColorTable (array colortable)
 
public method CreateColorRamp (scalar start_index, arrayref start_color, scalar end_index, arrayref end_color)
 
public list GetColorEntry (scalar i)
 
public list GetColorEntryAsRGB (scalar i)
 
public scalar GetCount ()
 
public scalar GetPaletteInterpretation ()
 
public method SetColorEntry (scalar index, array ColorEntry)
 
public Geo::GDAL::ColorTable new (scalar GDALPaletteInterp= 'RGB')
 
- Public Member Functions inherited from Geo::GDAL
public list AccessTypes ()
 
public Geo::GDAL::Dataset AutoCreateWarpedVRT (Geo::GDAL::Dataset src, Geo::OSR::SpatialReference src_srs=undef, Geo::OSR::SpatialReference dst_srs=undef, scalar ResampleAlg='NearestNeighbour', scalar maxerror=0.0)
 
public method CPLBinaryToHex ()
 
public method CPLHexToBinary ()
 
public list Child (scalar node, scalar i)
 
public list Children (scalar node)
 
public method ComputeMedianCutPCT (Geo::GDAL::Band red, Geo::GDAL::Band green, Geo::GDAL::Band blue, scalar num_colors, scalar colors, subref progress, scalar progress_data)
 
public method ComputeProximity (Geo::GDAL::Band src, Geo::GDAL::Band proximity, hashref options, subref progress, scalar progress_data)
 
public scalar DataTypeIsComplex (scalar DataType)
 
public list DataTypeValueRange (scalar DataType)
 
public list DataTypes ()
 
public method Debug ()
 
public scalar DecToDMS (scalar angle, scalar axis, scalar precision=2)
 
public scalar DecToPackedDMS (scalar dec)
 
public method DitherRGB2PCT (scalar red, scalar green, scalar blue, scalar target, scalar colors, subref progress, scalar progress_data)
 
public method EscapeString ()
 
public scalar FindFile (scalar class, 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, scalar default)
 
public scalar GetDataTypeSize (scalar DataType)
 
public Geo::GDAL::Driver GetDriver (scalar name)
 
public list GetDriverNames ()
 
public method GetJPEG2000StructureAsString ()
 
public Geo::GDAL::Driver IdentifyDriver (scalar path, scalar siblings)
 
public list NodeData (scalar node)
 
public scalar NodeType (scalar type)
 
public list NodeTypes ()
 
public Geo::GDAL::Dataset Open (scalar name, scalar access= 'ReadOnly')
 
public Geo::GDAL::Dataset OpenEx (scalar name, scalar open_flags=0, array reference allowed_drivers=undef, array reference open_options=undef, array reference sibling_files=undef)
 
public Geo::GDAL::Dataset OpenShared (scalar name, scalar access= 'ReadOnly')
 
public scalar PackCharacter (scalar DataType)
 
public scalar PackedDMSToDec (scalar packed)
 
public array reference ParseXMLString (scalar XML)
 
public method Polygonize (Geo::GDAL::Band src, Geo::GDAL::Band mask, Geo::OGR::Layer out, scalar PixValField, hashref options, subref progress, scalar progress_data)
 
public method PopFinderLocation ()
 
public method PushFinderLocation (scalar path)
 
public list RIOResamplingTypes ()
 
public method RasterizeLayer (Geo::GDAL::Dataset ds, arrayref bands, Geo::OGR::Layer layer, scalar transformer, scalar arg, arrayref burn_values, hashref options, subref progress, scalar progress_data)
 
public method 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, subref progress, scalar progress_data)
 
public list ResamplingTypes ()
 
public scalar SerializeXMLTree (arrayref XMLTree)
 
public method SetCacheMax (scalar Bytes)
 
public method SetConfigOption (scalar key, scalar value)
 
public method SieveFilter (Geo::GDAL::Band src, Geo::GDAL::Band mask, Geo::GDAL::Band dst, scalar threshold, scalar connectedness, hashref options, subref progress, scalar progress_data)
 
public scalar VersionInfo (scalar request= 'VERSION_NUM')
 

Detailed Description

A color table in a raster band.

Definition at line 2784 of file all.pm.

Constructor & Destructor Documentation

public list Geo::GDAL::ColorTable::ColorTable ( array  colortable)

Get or set the table of color entries.

Parameters
colortable[optional]
Returns
a table of color entries (a list of lists) in a non void context
Code:
click to view

Member Function Documentation

public Geo::GDAL::ColorTable Geo::GDAL::ColorTable::Clone ( )
Returns
a new Geo::GDAL::ColorTable object
Code:
click to view
public list Geo::GDAL::ColorTable::ColorEntries ( array  color_entries)

Get or set the table of color entries.

Deprecated:
use Geo::GDAL::ColorTable::ColorTable
Parameters
color_entries[optional]
Returns
a table of color entries (a list of lists) in a non void context
Code:
click to view
public list Geo::GDAL::ColorTable::ColorEntry ( scalar  i,
array  color 
)

Get or set a color entry.

Parameters
i
color[optional]
Returns
a color entry
Code:
click to view
public method Geo::GDAL::ColorTable::CreateColorRamp ( scalar  start_index,
arrayref  start_color,
scalar  end_index,
arrayref  end_color 
)
Parameters
start_index
start_color
end_index
end_color
Code:
click to view
public list Geo::GDAL::ColorTable::GetColorEntry ( scalar  i)
Parameters
i
Returns
array ColorEntry = ($c1, $c2, $c3, $c4)
Code:
click to view
public list Geo::GDAL::ColorTable::GetColorEntryAsRGB ( scalar  i)
Parameters
i
Returns
array ColorEntry = ($r, $g, $b, $alpha)
Code:
click to view
public scalar Geo::GDAL::ColorTable::GetCount ( )
Returns
scalar (count of color entries as int)
Code:
click to view
public scalar Geo::GDAL::ColorTable::GetPaletteInterpretation ( )
Returns
paletter interpretation (string)
Code:
click to view
public Geo::GDAL::ColorTable Geo::GDAL::ColorTable::new ( scalar  GDALPaletteInterp = 'RGB')

Class method.

Usage:

$ct = Geo::GDAL::ColorTable->new(...arguments...);
Returns
a new Geo::GDAL::ColorTable object
Code:
click to view
public method Geo::GDAL::ColorTable::SetColorEntry ( scalar  index,
array  ColorEntry 
)
Parameters
index
ColorEntrya list or a reference to an array
Code:
click to view

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