Geodetik2UTM Transformation
Geodetik2UTM Transformation
Script:
clear all
clc
format longG
% Geographic coordinate
Lat = -(7+(18/60)+(7.15/3600)); %latitude(deg) of home point
Latrad = Lat*pi/180; %latitude(rad) of home point
Lon = 112+(37/60)+(56.13/3600); %longitude(deg) of home point
disp("Known:")
disp(['Latitude of Home Point = ' , num2str(Lat), ' degree'])
disp(['Longitude of Home Point = ' num2str(Lon), ' degree'])
% Determining l and b
% Central meridian (Long0)
Long0 = (floor(Lon/6)*6) + 3;
dLong0 = Lon-Long0;
% Central paralel (Lat0)
Lat0 = Lat;
% UTM Coordinate
x = (a1*dLong0 + a3*dLong0^3 + a5*dLong0^5) + 500000;
y = (a0+a2*dLong0^2+a4*dLong0^4+a6*dLong0^6) + 10000000;
disp(' ')
disp('Calculation Result:')
disp(['X UTM = ', num2str(x), ' m'])
disp(['Y UTM = ', num2str(y), ' m'])
disp(' ')
disp('Conclusion:')
disp(['Home point in geographic coordinate (degree): ', num2str(Lat), ' and ',
num2str(Lon), ' has UTM coordinate: X = ',...
num2str(x), ' m and Y = ' num2str(y), ' m'])
disp(' ')
disp('Thank you')
Result:
=====Geographic to UTM Coordinate Transformation=====
Name : Rizka Amelia Dwi Safira
NRP : 03311940000044
Subject : Coordinat System and Map Projection
=====================================================
Known:
Latitude of Home Point = -7.302 degree
Longitude of Home Point = 11 2.6323 degree
Calculation Result:
X UTM = 680189.9655 m
Y UTM = 9192541.1147 m
Conclusion:
Home point in geographic coordinate (degree): -7.302 and 112.6323 has UTM
coordinate: X = 680189.9655 m and Y = 9192541.1147 m
Thank you