How to project altitude values
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I know how to project latitude, longitude like the code below, but how can I project altitude values?
-code-
rrMap = roadrunnerHDMap;
p = readCRS(rrMap);
[x1,y1] = projfwd(p,latitue,longitude);
Just as projfwd is a function of projecting latitude-longitude coordinates into x-y map coordinates, I want to project altitude values into x-y map coordinates
May I know how?
1 commentaire
Jatin
le 10 Sep 2024
Hi @주영, you might want to have a look at this File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/50704-getelevations-latitude-longitude-varargin?focused=3873861&tab=function
Réponses (1)
Dheeraj
le 11 Sep 2024
Hi 주영,
Projecting altitude values into a 2D map coordinate system is not as straightforward as projecting latitude and longitude. The projfwd function transforms geographic coordinates (latitude and longitude) into a 2D plane, typically ignoring the altitude or treating it as a separate dimension. However, altitude can be handled by incorporating it into a 3D coordinate system or by mapping it to a certain feature on your 2D map.
This can be done by Handling Altitude Seperately:
- Color Coding: Use different colors to represent different altitude levels on your 2D map.
- Contours or Elevation Lines: Draw contours to represent different altitudes.
- Annotations or Labels: Add text annotations on your map to indicate altitude.
0 commentaires
Voir également
Catégories
En savoir plus sur Mapping Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!