How to use addCustomTerrain function with raster image (bil) format?

4 次查看(过去 30 天)
I am trying to implement
this project uses dted file format which only takes a small tile.
dtedfile = "n39_w106_3arc_v2.dt1";
attribution = "SRTM 3 arc-second resolution. Data available from the U.S. Geological Survey.";
addCustomTerrain("southboulder",dtedfile, ...
"Attribution",attribution)
I want load my own Raster Image(bil file) which is a large file and later pass it on into function
addCustomTerrain
How can I do that?

回答(1 个)

Milan Bansal
Milan Bansal 2023-12-22
Hi Ifrah Maqsood,
It is my understanding that you are facing issues when passing your raster image with BIL (Band-Interleaved by Line ) file format into the "addCustomTerrain" function.
The "addCustomTerrain" function strictly supports only the DTED (Digital Terrain Elevation Data) file formats i.e. ".dt0", ".dt1" and ".dt2". There are no direct functions provided in the MATLAB to convert a BIL raster file into a DTED file. Please consider using the external sources to process the raster file and convert it into the required file format.
Please refer to the documentation to learn more about "addCustomTerrain" function.
Hope it helps!

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by