Why was the dted() function hardcoded to read from lowest (0) to highest (3) level?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
This is more a question to the relevant Mapping Toolbox developers, and probably isn't the most appropriate area or way to ask.
Inside of dted.m, line 170, the code attempts to search for a matching dted file from level 0, 1, 2, and finally 3.
This seems like an odd choice to hardcode 0:3 without providing an additional key/value parameter to specify search order (i.e., highest to lowest) instead. The current implementation makes passing a folder path to dted() rather useless, as I currently have to resort to manually checking if higher levels exists first and individually read each file with a corresponding dted() call. If instead we were able to change the search order (i.e. 3:-1:0), calling dted() with a folder would guarantee that the highest level dted files are used if available.
For background, I am working on an application where all level 0 files are available, but they should only be treated as a backup option if higher levels are not available first. Having the highest resolutions (if available) is absolutely preferred over level 0. I imagine there are other MATLAB users that would have similar requirements.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!