gdaltranslate
gdaltranslate(indata, options=String[]; dest=“/vsimem/tmp”, kwargs…)
Convert raster data between different formats.
Operations provided by the GDAL ‘gdal_translate’ tool. Namely sub-region extraction and resampling. The kwargs options accept the GMT region (-R), increment (-I), target SRS (-J). Any of the keywords outgrid, outfile or save = outputname options to make this function save the result on a file designated by ‘outputname’. The file format is picked from the ‘outputname’ file extension. When no output file name is provided it returns a GMT object (either a grid or an image, depending on the input type). To force the return of a GDAL dataset use the option gdataset=true.
Args
Kwargs
meta=metadata, wheremetadatais a string vector with the form “NAME=….” for each of its elements. This data will be recognized by GDAL as Metadata. Thekwargsmay also contain the GMT region (-R), proj (-J), inc (-I) andsave=fnameoptions. And it may also contain aoptions=...argument that is equivalent to theoptionspositional argument, with the exception that the value may also be a Tuple.
Returns
A GMT grid or Image, or a GDAL dataset (or nothing if file was writen on disk).
Source Code
This function has multiple methods:
gdaltranslate(ds::GMT.Gdal.IDataset; ...)- gdal.jl:1620gdaltranslate(dataset::GMT.Gdal.Dataset; ...)- gdal.jl:1608gdaltranslate(ds::GMT.Gdal.IDataset, opts; dest, gdataset, save)- gdal.jl:1620gdaltranslate(dataset::GMT.Gdal.Dataset, options; dest, gdataset, save, layout)- gdal.jl:1608gdaltranslate(indata, opts; dest, kwargs...)- gdal_tools.jl:28gdaltranslate(indata; ...)- gdal_tools.jl:28