fmeobjects.FMETile¶
FMETile.getByteArray() |
Returns a list of bytearrays where each bytearray represents the data values of each row of the tile. |
FMETile.getDataAsStringArray(startRow, …) |
Get a list that contains values of the tiles. |
FMETile.getDataType() |
Get the data type of a raster tile. |
FMETile.getDataTypeBitDepth() |
Get the number of bits in the data type of a raster tile. |
FMETile.getInterpretation() |
Get the interpretation of a raster tile. |
FMETile.getInterpretationBitDepth() |
Get the number of bits in the interpretation of a raster tile. |
FMETile.getInterpretationNumComponents() |
Get the number of components in the interpretation of a raster tile. |
FMETile.getNumCols() |
Get the number of columns in a raster tile. |
FMETile.getNumDataTypesPerCell() |
Get the number of instances of the data type in a cell of a raster tile. |
FMETile.getNumRows() |
Get the number of Rows in a raster tile. |
FMETile.getTileByteLength() |
Get the number of bytes in the raster tile. |
FMETile.getTileNumComponents() |
Get the number of component data types in the raster tile. |
-
class
FMETile¶ Bases:
objectFME Tile Class
init()
FMETileis an abstract class. It cannot be created directly.-
__init__¶ Initialize self. See help(type(self)) for accurate signature.
-
getByteArray()¶ Returns a list of bytearrays where each bytearray represents the data values of each row of the tile.
Return type: list[bytearray] Returns: The data values of the tile.
-
getDataAsStringArray(startRow, startCol, numRows, numCols)¶ Get a list that contains values of the tiles. One string is added to the list for each cell in the specified area. If the specified area falls outside the bounds of the tile, the string array will not be modified. ‘startRow’, ‘startCols’, numRows’, and ‘numCols’ should be integers greater than or equal to 0.
Parameters: Return type: Returns: Values in the tile.
-
getDataType()¶ Get the data type of a raster tile.
Returns one of:
Return type: int Returns: Data type of a raster tile. For example: An FMEInt32Tilewould returnFME_DATA_TYPE_INT32. AnFMERGBA64Tilewould returnFME_DATA_TYPE_UINT16. AnFMEStringTilewould returnFME_DATA_TYPE_UINT8.
-
getDataTypeBitDepth()¶ Get the number of bits in the data type of a raster tile.
Return type: int Returns: The number of bits in the data type of a raster tile. For example: An FMEInt32Tilewould return 32. AnFMERGBA64Tilewould return 16. AnFMEStringTilewould return 8.
-
getInterpretation()¶ Get the interpretation of a raster tile. Returns one of:
FME_INTERPRETATION_NULLFME_INTERPRETATION_REAL64FME_INTERPRETATION_REAL32FME_INTERPRETATION_UINT64FME_INTERPRETATION_INT64FME_INTERPRETATION_UINT32FME_INTERPRETATION_INT32FME_INTERPRETATION_UINT16FME_INTERPRETATION_INT16FME_INTERPRETATION_UINT8FME_INTERPRETATION_INT8FME_INTERPRETATION_GRAY8FME_INTERPRETATION_GRAY16FME_INTERPRETATION_RED8FME_INTERPRETATION_RED16FME_INTERPRETATION_GREEN8FME_INTERPRETATION_GREEN16FME_INTERPRETATION_BLUE8FME_INTERPRETATION_BLUE16FME_INTERPRETATION_ALPHA8FME_INTERPRETATION_ALPHA16FME_INTERPRETATION_NULLFME_INTERPRETATION_RGB24FME_INTERPRETATION_RGBA32FME_INTERPRETATION_RGB48FME_INTERPRETATION_RGBA64FME_INTERPRETATION_STRING
Return type: int Returns: Interpretation of a raster tile. For example: An FMERGBA64Tilewould returnFME_INTERPRETATION_RGBA64. AnFMERGBA64Tilewould returnFME_INTERPRETATION_RGBA64. AnFMEStringTilewould returnFME_INTERPRETATION_STRING.
-
getInterpretationBitDepth()¶ Get the number of bits in the interpretation of a raster tile.
Return type: int Returns: The number of bits in the interpretation of a raster tile. For example: An FMEInt32Tilewould return 32. AnFMERGBA64Tilewould return 64. AnFMEStringTilewould return 8 * stringLength.
-
getInterpretationNumComponents()¶ Get the number of components in the interpretation of a raster tile.
Return type: int Returns: The number of components in the interpretation of a raster tile. For example: An FMEInt32Tilewould return 1. AnFMERGBA64Tilewould return 4. AnFMEStringTilewould return 1.
-
getNumCols()¶ Get the number of columns in a raster tile.
Return type: int Returns: The number of columns.
-
getNumDataTypesPerCell()¶ Get the number of instances of the data type in a cell of a raster tile.
Return type: int Returns: The number of instances of the data type. For example: An FMEInt32Tilewould return 1. AnFMERGBA64Tilewould return 4. AnFMEStringTilewould return stringLength.
-
getNumRows()¶ Get the number of Rows in a raster tile.
Return type: int Returns: The number of rows in a raster tile.
-