For projection I am using
m_proj('Mercator')
Next I use the following to convert an array of lon
and lat
points into x y
coordinates.
[x,y] = m_ll2xy(lon,lat)
The [x,y]
I got were in some units that I didn't understand. For example the x
corresponding to longitude of -180 and 180 degrees are -pi and pi, while the y
corresponding to latitude of -85 to 85 degrees are -3.1313 and 3.1313.
I want to get the [x,y]
in units of km, which I understand have to be defined from a fixed point. How can I do this? Thanks