BlueSpray - Help
© SchoonerTurtles, Inc. 2012-2015

Introduction
Contents
Getting Started
Download
Navigating
Tutorials
Scripting
Advanced
About

Class STDataType

Extends STTransformRaster

Converts raseters to different data types (byte, short, float, etc.).


Copyright, SchoonerTurtles LLP, 2009
@author Jim Graham

Static Functions

ReturnsFunctionThrows
STRaster Convert(STRaster TheInput,DATA_TYPE DataType,boolean Stretch) Exception
STRaster ConvertToByte(STRaster TheInput,boolean Stretch) Exception
STRaster ConvertToDouble(STRaster TheInput) Exception
STRaster ConvertToFloat(STRaster TheInput) Exception
STRaster ConvertToInt(STRaster TheInput) Exception
STRaster ConvertToShort(STRaster TheInput,boolean Stretch) Exception

Static Functions


STRaster Convert(STRaster TheInput,DATA_TYPE DataType,boolean Stretch) Exception

Convert an existing raster to a new datatype. This function will truncate
the data in the existing raster if it is outside the valid range of the
new data type.

Parameters:
    TheInput - the raster to convert
    DataType - An STRaster DATA_TYPE
Returns: a new raster with the specified data type.
Throws: Exception


STRaster ConvertToByte(STRaster TheInput,boolean Stretch) Exception


STRaster ConvertToDouble(STRaster TheInput) Exception


STRaster ConvertToFloat(STRaster TheInput) Exception


STRaster ConvertToInt(STRaster TheInput) Exception


STRaster ConvertToShort(STRaster TheInput,boolean Stretch) Exception