Geo::GDAL 1.7.0

Geo::GDAL::RasterAttributeTable Class Reference

List of all members.

Public Class Methods

Geo::GDAL::RasterAttributeTable new ()
list FieldTypes ()
list FieldUsages ()

Public Object Methods

Geo::GDAL::RasterAttributeTable Clone ()
 SetRowCount (scalar count)
scalar GetRowCount ()
hash Columns (hash columns)
 CreateColumn (scalar name, scalar type, scalar usage)
scalar GetColumnCount ()
scalar GetNameOfCol (scalar column)
scalar GetUsageOfCol (scalar column)
scalar GetTypeOfCol (scalar column)
scalar GetColOfUsage (scalar usage)
scalar GetRowOfValue (scalar value)
scalar Value (scalar row, scalar column, scalar value)
scalar GetValueAsString (scalar row, scalar column)
scalar GetValueAsInt (scalar row, scalar column)
scalar GetValueAsDouble (scalar row, scalar column)
 SetValueAsString (scalar row, scalar column, scalar value)
 SetValueAsInt (scalar row, scalar column, scalar value)
 SetValueAsDouble (scalar row, scalar column, scalar value)

Member Function Documentation

Geo::GDAL::RasterAttributeTable Geo::GDAL::RasterAttributeTable::Clone ( )
Returns:
a new Geo::GDAL::RasterAttributeTable object
hash Geo::GDAL::RasterAttributeTable::Columns ( hash  columns)

A get/set method for the columns of the RAT

Parameters:
columnsoptional, a the keys are column names and the values are anonymous hashes with keys Type and Usage
Returns:
a hash similar to the optional input parameter
Geo::GDAL::RasterAttributeTable::CreateColumn ( scalar  name,
scalar  type,
scalar  usage 
)
Parameters:
name
typeone of FieldTypes
usageone of FieldUsages
list Geo::GDAL::RasterAttributeTable::FieldTypes ( )
Returns:
list Geo::GDAL::RasterAttributeTable::FieldUsages ( )
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetColOfUsage ( scalar  usage)
Parameters:
usage
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetColumnCount ( )
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetNameOfCol ( scalar  column)
Parameters:
column
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetRowCount ( )
scalar Geo::GDAL::RasterAttributeTable::GetRowOfValue ( scalar  value)
Parameters:
valuea pixel value
Returns:
row index or -1
scalar Geo::GDAL::RasterAttributeTable::GetTypeOfCol ( scalar  column)
Parameters:
column
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetUsageOfCol ( scalar  column)
Parameters:
column
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetValueAsDouble ( scalar  row,
scalar  column 
)
Parameters:
row
column
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetValueAsInt ( scalar  row,
scalar  column 
)
Parameters:
row
column
Returns:
scalar Geo::GDAL::RasterAttributeTable::GetValueAsString ( scalar  row,
scalar  column 
)
Parameters:
row
column
Returns:
Geo::GDAL::RasterAttributeTable Geo::GDAL::RasterAttributeTable::new ( )
Returns:
a new Geo::GDAL::RasterAttributeTable object
Geo::GDAL::RasterAttributeTable::SetRowCount ( scalar  count)
Parameters:
count
Geo::GDAL::RasterAttributeTable::SetValueAsDouble ( scalar  row,
scalar  column,
scalar  value 
)
Parameters:
row
column
value
Geo::GDAL::RasterAttributeTable::SetValueAsInt ( scalar  row,
scalar  column,
scalar  value 
)
Parameters:
row
column
value
Geo::GDAL::RasterAttributeTable::SetValueAsString ( scalar  row,
scalar  column,
scalar  value 
)
Parameters:
row
column
value
scalar Geo::GDAL::RasterAttributeTable::Value ( scalar  row,
scalar  column,
scalar  value 
)
Parameters:
row
column
value[optional]
Returns:

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