GeoASC

GeoASC

Handles ASC files. Part of Geospatiale III.

Source:

Methods

(static) convertToPNG(arg0_input_file_path, arg1_output_file_path, arg2_optionsopt) → {Promise.<{dataframe: Object, max_value: number}>}

Converts an .asc file to .png.

Source:
Parameters:
Name Type Attributes Description
arg0_input_file_path string
arg1_output_file_path string
arg2_options Object <optional>
Name Type Attributes Default Description
format string <optional>
"int32"

Either 'int32'/'float32'/'percentage'.

ceil boolean <optional>
true

Whether to ceiling ASC integers when format is 'int32'.

special_function function <optional>

Any function to pass to the iterative loop when processing. Must return a number.

Returns:
Type:
Promise.<{dataframe: Object, max_value: number}>

(static) readFile(arg0_file_path) → {Array.<Array.<any>>}

Reads an ASC file into a 2D Array/dataframe.

Source:
Parameters:
Name Type Description
arg0_file_path string
Returns:
Type:
Array.<Array.<any>>