fmeobjects.FMEBandProperties

Inheritance diagram of fmeobjects.FMEBandProperties

FMEBandProperties.equals(bandPropertyObj)

Evaluates whether two band properties are identical.

FMEBandProperties.getBitDepth()

Returns bit depth of the band.

FMEBandProperties.getInterpretation()

Returns the interpretation of the band.

FMEBandProperties.getName()

Returns the name of the band.

FMEBandProperties.getNumTileCols()

Returns the number of columns in the tile size of the band.

FMEBandProperties.getNumTileRows()

Returns the number of rows in the tile size of the band.

FMEBandProperties.getTileType()

Returns tile type representing the type of data access supported by this band.

FMEBandProperties.hasBeenModified()

Evaluates whether the band properties have been modified from their baseline state.

FMEBandProperties.setInterpretation(...)

Sets the interpretation of the band.

FMEBandProperties.setModified(modified)

Sets whether band properties have been modified from baseline state.

FMEBandProperties.setName(name)

Sets name of the band.

FMEBandProperties.setNumTileCols(numCols)

Sets the number of columns per tile in the raster

FMEBandProperties.setNumTileRows(numRows)

Sets the number of rows per tile in the raster.

FMEBandProperties.setTileType(tileType)

Sets the tile type that can most efficiently support data access.

class FMEBandProperties

FME Band Properties Class

Create an instance of a FMEBandProperties object.

init(nameString, interpretation, tileType, numTileRows, numTileColumns)

Creates a band property with the given properties.

Parameters:
Parameters:
  • numTileRows – Number of rows per tile in the raster.

  • numTileColumns – Number of columns per tile in the raster.

Return type:

FMEBandProperties

Returns:

An instance of a BandProperties object.

init(bandProperties)

Create a copy of the passed in bandProperties object.

Parameters:

bandProperties (FMEBandProperties) – The bandProperties object to create a copy of.

Return type:

FMEBandProperties

Returns:

An instance of a BandProperties object.

__init__(*args, **kwargs)
equals(bandPropertyObj)

Evaluates whether two band properties are identical.

Parameters:

bandPropertyObj (FMEBandProperties) – The band property to compare to.

Return type:

bool

Returns:

True if the two properties have the same value.

getBitDepth()

Returns bit depth of the band.

Return type:

int

Returns:

The bit depth of the band.

getInterpretation()

Returns the interpretation of the band.

Returns one of:

Return type:

int

Returns:

The interpretation of the band.

getName()

Returns the name of the band.

Return type:

str or None

Returns:

Name of the band or None if name does not exist.

getNumTileCols()

Returns the number of columns in the tile size of the band. That is, this represents the most efficient tile size for data access. Note that a band can return data for any tile size (i.e. FMEBand.getTile will accept any tile), but using a tile with this size may have better performance or lower memory usage.

Return type:

int

Returns:

The number of columns per tile.

getNumTileRows()

Returns the number of rows in the tile size of the band. That is, this represents the most efficient tile size for data access. Note that a band can return data for any tile size (i.e. FMEBand.getTile will accept any tile), but using a tile with this size may have better performance or lower memory usage.

Return type:

int

Returns:

The number of rows per tile.

getTileType()

Returns tile type representing the type of data access supported by this band. Possible values:

Note that this value is only relevant for readers. That is, when creating a reader, this value should be specified depending on how FMEBandTilePopulator is implemented. On the other hand, a consumer of data (e.g. a writer) can always request data in whatever size is desired, regardless of this value. FME will reconcile the writer request size with the reader’s supported tile size.

Return type:

int

Returns:

Type of the tile.

hasBeenModified()

Evaluates whether the band properties have been modified from their baseline state.

Return type:

bool

Returns:

True if the band properties have been modified

setInterpretation(interpretation)

Sets the interpretation of the band.

Parameters:

interpretation (int) –

Interpretation of the band. Choose one of:

Return type:

None

setModified(modified)

Sets whether band properties have been modified from baseline state.

Note that hasBeenModified is initially set to False.

Parameters:

modified (bool) – True when properties is altered.

Return type:

None

setName(name)

Sets name of the band.

Parameters:

name (str) – The name of the band.

Return type:

None

setNumTileCols(numCols)

Sets the number of columns per tile in the raster

Parameters:

numCols (int) – Number of columns per tile in the raster. Number must be positive number, not exceeding the total number of columns.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.

setNumTileRows(numRows)

Sets the number of rows per tile in the raster.

Parameters:

numRows (int) – Number of rows per tile in the raster. Number must be positive number, not exceeding the total number of rows.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.

setTileType(tileType)

Sets the tile type that can most efficiently support data access.

Parameters:

tileType (int) – Possible values:

Return type:

None