Change coordinate system, from EPSG 3003 to EPSG 32632 (i.e. WGS 84 / UTM zone 32N)

49 views (last 30 days)
I have the following point with x-y-coordinates in the EPSG 3003 coordinate system:
a = [1.7202e+06 4.8998e+06]
How can change the above mentioned x-y-coordinates from EPSG 3003 to EPSG:32632 (i.e. WGS 84 / UTM zone 32N)?

Accepted Answer

Manikanta Aditya
Manikanta Aditya on 30 Jun 2024
Hi,
In MATLAB, you can use the 'projcrs' and 'projfwd' functions to transform coordinates between different coordinate reference systems (CRS).
  • 'projinv' converts the coordinates from EPSG 3003 to geographic coordinates (latitude and longitude).
  • 'projfwd' converts these geographic coordinates to the target CRS (EPSG 32632).
% Define the point in EPSG 3003
x_epsg3003 = 1.7202e+06;
y_epsg3003 = 4.8998e+06;
% Define the source and target CRS
sourceCRS = projcrs(3003);
targetCRS = projcrs(32632);
% Transform the coordinates from EPSG 3003 to EPSG 32632
[lat, lon] = projinv(sourceCRS, x_epsg3003, y_epsg3003); % Convert to geographic coordinates (latitude and longitude)
[x_epsg32632, y_epsg32632] = projfwd(targetCRS, lat, lon); % Convert from geographic coordinates to target CRS
% Display the results
fprintf('Coordinates in EPSG:32632: (%f, %f)\n', x_epsg32632, y_epsg32632);
Coordinates in EPSG:32632: (720189.814410, 4899709.877584)
Refer to the following documentation to know more about:
Hope this helps!

More Answers (0)

Community Treasure Hunt

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

Start Hunting!