Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

.

Answered: 1 week ago

Question

u = 5 j , v = 6 i Find the angle between the vectors.

Answered: 1 week ago

Question

Design a training session to maximize learning. page 296

Answered: 1 week ago

Question

Design a cross-cultural preparation program. page 300

Answered: 1 week ago