TransWikia.com

I'm struggling with the new syntax and with GeoGraphics

Mathematica Asked by David Elm on February 5, 2021

I’ve used Mathematica since the mid-90’s, but I’m a beginner with some of the new syntax.

The thing I’m trying to do is not only have a polar map of the Northern Hemisphere,

enter image description here

Graphics @@ 
 GeoGraphics[GeoProjection -> "Orthographic", GeoCenter -> {90, 0}, 
  GeoRange -> "World", GeoGridLines -> Automatic, Background -> None, 
  ImageSize -> 300]

But also, I’d like to mark individual cities on this map, kind of like we have here.
enter image description here

But I’m getting stumped with a simple syntax issue. How do I include a GeoMarker within the structure I already have in order to indicate where various cities are on this map?

So far, I’ve tried couple of things.
enter image description here

This is close, but the range is cropped.

enter image description here
This, clearly, is the wrong shape.

I’m also not sure how to paste this code in this forum without it looking long, ugly and terrible.

One Answer

We can query GeoProjectionData for the complete options for the default form of the specified projection:

GeoProjectionData["Orthographic"]

{"Orthographic", {"Centering" -> {0, 0},"GridOrigin" -> {0, 0},"ReferenceModel" -> 1}}

This suggests we can pass a "Centering" sub-option to achieve what I think you're asking for:

With[{fresno = 
   Entity["City", {"Fresno", "California", "UnitedStates"}]},
 GeoGraphics[GeoMarker[fresno], GeoRange -> "World", 
  GeoProjection -> {"Orthographic", {"Centering" -> 
      fresno["Coordinates"], "GridOrigin" -> {0, 0}, 
     "ReferenceModel" -> 1}}]]

enter image description here

Answered by George Varnavides on February 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP