Question
Problem 6. (Mercator Projection) The Mercator projection is a conformal (angle preserving) projection that maps latitude and longitude to rectangular coordinates (x,y). It is widely
Problem 6. (Mercator Projection) The Mercator projection is a conformal (angle preserving) projection that maps latitude and longitude to rectangular coordinates (x,y). It is widely used for example, in nautical charts and in the maps that you print from the web. The projection is dened by the equations x = 0 and y = ln((1 + sin)/(1sin))/2, where 0 is the longitude of the point in the center of the map. Write a program mercator.py that takes three oats 0, , and as command-line arguments and writes its projection, ie, the x and y values, separated by a space. Note that the equations use degrees, whereas Pythons trigonometric functions use radians. Use math.radians() to convert degrees to radians. Use your program to compute the Mercator projection of Boston (42.36 N and 71.06 W) with the center of the map being the prime meridian (0).
$ python3 mercator.py 0 42.36 -71.06 -71.06 0.8176461519422712
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started