Skip to content

Commit c673217

Browse files
committed
Bug fix.
1 parent bdb672d commit c673217

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Coordinate Systems/ellips2Mercator.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
% scalFact The scale factor (both parallel and meridian) at the given
2424
% points.
2525
%
26-
%The Mercatir projection is discussed in detail in Chapter 7 of [1].
26+
%The Mercator projection is discussed in detail in Chapter 7 of [1].
2727
%Equations for the conversion along with a commonly used but very
2828
%inaccurate spherical Mercator conversion (the "Web" Mercator map) are
2929
%given in [2]. The spherical Mercator conversion can be obtained by setting
@@ -54,6 +54,7 @@
5454
e=sqrt(e2);
5555

5656
sinPhi=sin(latLon(1,:));
57+
cosPhi=cos(latLon(1,:));
5758
lambda=latLon(2,:);
5859

5960
x=a*lambda;

0 commit comments

Comments
 (0)