3
$\begingroup$

I am trying to reproduce an example from Geographics.

GeoGraphics[Polygon[Italy]]

It does not work. Using Ctrl+= this way:

GeoGraphics[Polygon[Ctrl+= Italy]]

Does not work either. What keys do I need to use before Italy to make this work?

$\endgroup$
2
  • 4
    $\begingroup$ The second option should work. You could also try GeoGraphics[Polygon[Entity["Country", "Italy"]]]. Also, you're running Mathematica 10 or above, right? GeoGraphics didn't exist in MM 9 or earlier. $\endgroup$ Commented Jun 11, 2015 at 13:16
  • $\begingroup$ I am actually experiencing a weird behavior here: CTRL+= generates a WolframAlpha inline input field, but when I press enter to retrieve the result it fails, complaining that it doesn't have internet access. On the other hand, I can use = Italy at the beginning of an empty line, which should be equivalent, and it works fine. I can also use == Italy and that works as well. Clearly there is nothing wrong with Internet access from within Mathematica, but still the inline form doesn't work for me either. Was that what you experienced as well? $\endgroup$
    – MarcoB
    Commented Jun 11, 2015 at 15:28

1 Answer 1

6
$\begingroup$

As pointed out by Michael Seifert in a comment GeoGraphics[Polygon[Ctrl+=Italy]] should work (it worked for me), but if you want do it without using Wolfram's server, try

GeoGraphics[Polygon[Entity["Country", "Italy"]], GeoBackground -> None]

italy

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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