The GeoPosition of Eureka, California is:

GeoPosition[{40.7933, -124.155}]

Has anyone ever created an image of the world with latitude and longitude lines? What would be a good way using Mathematica to create an image showing that these GeoPosition numbers make sense for the city of Eureka, California?


The following shows an equirectangular projection with geographic gridlines positioned every 10 degrees of latitude and longitude, and starting at the geographic zero reference points for the northern hemisphere.

A marker is also placed at the location of Eureka using your coordinates. One can then approximate the position of the marker by using the gridlines and convince oneself that those coordinates are reasonable for the position of Eureka, CA.

  GeoMarker@GeoPosition[{40.7933, -124.155}],
  GeoGridLines -> {5, 13}, 
  GeoGridLinesStyle -> Directive[Thick, Red, Opacity[0.5]],
  GeoRange -> {{0, 60}, {-130, 0}}, GeoRangePadding -> None,
  GeoProjection -> "Equirectangular",
  ImageSize -> Full,
  Frame -> True, FrameStyle -> Directive[15, Black, Bold],
  FrameLabel -> (Style[#, 18, FontWeight -> Plain] & /@ {"Longitude", "Latitude"})

Mathematica graphics

| improve this answer | |
  • 1
    $\begingroup$ GeoPosition[Entity["City", {"Eureka", "California", "UnitedStates"}]] could have been used to get the required position. $\endgroup$ – J. M.'s discontentment Mar 21 '16 at 3:26
  • $\begingroup$ @MarcoB Fabulous answer. It introduces me to so much at a beginner's level. I also added Frame->True which will be helpful when I explain this to my colleagues. Thanks so much. $\endgroup$ – David Mar 21 '16 at 4:12
  • $\begingroup$ @David you're very welcome. adding a Frame does make a lot of sense as well. $\endgroup$ – MarcoB Mar 21 '16 at 5:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.