I have a WGS84 coordinate pair (37.7749295, -122.4194155)
. I have an image that is a Robinson Map Projection of the world. I'm trying to write a python script to locate my WGS84 coordinate on my Robinson Map.
As an essential step in this, I'm trying to use pyproj
, the python-adaption of Proj4
, to convert my WGS84 coordinate to a Robinson coordinate. Unfortunately I am new to Proj4, and somewhat confused by the documentation. I hope that someone can help me out.
Best Answer
You can do this using cartopy.
To test I used a map in the Robinson projection downloaded from Wikipedia.
http://en.wikipedia.org/wiki/List_of_cartographers#mediaviewer/File:Robinson-projection.jpg
The result is shown below.
To convert coordinates between lnglat and WGS84 using pyproj: