3

I want to plot the Sicily with a lat/lon grid and respective values. This is what I've done so far:

latRange = Range[36.61, 38.36, 0.5];
lonRange = Range[12.34, 15.70, 0.5];
exampleMap = GeoGraphics[
  {
   GeoStyling["ReliefMap"],
   Polygon[Entity["Island", "Sicily"]]
   },
  GeoGridLines -> {
    latRange,
    lonRange
    },
  Frame -> True,
  ImageSize -> 700
  ]

Sicily

The problem is that frame ticks does not correspond to correct values of latitude and longitude (I want also to rotate the map but maybe it's better to ask in another question); latitude labels are wrong, as we can see from Google Earth for example:

enter image description here

Latitude values that I've set in fact are in a different range. Longitude lines seem correct but I'm not sure at this point.

How I can set the frame ticks with correct values of latitude and longitude?

Jepessen
  • 950
  • 6
  • 16

1 Answers1

2

Use GeoProjection->None:

latRange = Range[36.61, 38.36, 0.5];
lonRange = Range[12.34, 15.70, 0.5];
exampleMap = 
 GeoGraphics[{GeoStyling["ReliefMap"], 
   Polygon[Entity["Island", "Sicily"]]}, 
  GeoGridLines -> {latRange, lonRange}, Frame -> True, 
  ImageSize -> 700, GeoProjection -> None
  , FrameTicks -> {{latRange, None}, {lonRange, None}}
  ]

enter image description here

Syed
  • 52,495
  • 4
  • 30
  • 85
  • It's not possible to take into account the projection? Because in my use case I need to create those map with different projections, and draw the corresponding lat/lon lines with correct frame ticks... – Jepessen Mar 09 '23 at 13:55
  • Correct display of lat/lon should not be dependent on the projection. I would say it is likely a bug; but wait for a while and someone else might have a better explanation or workaround. – Syed Mar 09 '23 at 14:00