public static Object getFloatValue(Result result, int index,
			GeoPackageDataType dataType) {

		Object value = null;

		if (dataType == null) {
			dataType = GeoPackageDataType.DOUBLE;
		}

		switch (dataType) {

		case FLOAT:
			value = result.getFloat(index);
			break;
		case DOUBLE:
		case REAL:
		case INTEGER:
		case INT:
			value = result.getDouble(index);
			break;
		default:
			throw new GeoPackageException("Data Type " + dataType
					+ " is not a float type");
		}

		if (result.wasNull()) {
			value = null;
		}

		return value;
	}
public static Object getFloatValue ( Result result , int index , GeoPackageDataType dataType ) { Object value = null ; if ( dataType == null ) { dataType = GeoPackageDataType . DOUBLE ; } switch ( dataType ) { case FLOAT : value = result . getFloat ( index ) ; break ; case DOUBLE : case REAL : case INTEGER : case INT : value = result . getDouble ( index ) ; break ; default : throw new GeoPackageException ( "Data Type " + dataType + " is not a float type" ) ; } if ( result . wasNull ( ) ) { value = null ; } return value ; }
Get the float value from the cursor of the column

@param result
result
@param index
index
@param dataType
data type
@return float value