Crop a raster and convert the output tiles into new formats.
Crop a raster and convert the output tiles into new formats.
This function has been deprecated as of terrainr 0.5.0 in favor of the new function, make_manifest . While it will be continued to be exported until at least 2022, improvements and bug fixes will only be made to the new function. Please open an issue if any features you relied upon is missing from the new function!
raster_to_raw_tiles(input_file, output_prefix, side_length =4097, raw =TRUE)
Arguments
input_file: File path to the input TIFF file to convert.
output_prefix: The file path to prefix output tiles with.
side_length: The side length, in pixels, for the .raw tiles.
raw: Logical: Convert the cropped tiles to .raw? When FALSE
returns a .png.
Returns
Invisibly, a character vector containing the file paths that were written to.
Details
This function crops input raster files into smaller square tiles and then converts them into either .png or .raw files which are ready to be imported into the Unity game engine.