Message Boards Message Boards

0
|
3747 Views
|
10 Replies
|
4 Total Likes
View groups...
Share
Share this post:

GeoListPlot

Dear All,

I'm currently using GeoListPlot to visualize countries:

GeoListPlot[{Entity["Country", "UnitedStates"], 
  Entity["Country", "Netherlands"]}, ImageSize -> 1200, 
 GeoRange -> "World"]

I was wondering why for the USA, Alaska is not highlighted? Is it possible to use "FullPolygon" like you can with CountryData?

Regards,

SH

POSTED BY: Sander Huisman
10 Replies

It seems really easy to fix right?

Just update the CountryData-dataset to include (a rougher version of) Alaska for the polygon version. And using the paclet data it should get updated...right?

POSTED BY: Sander Huisman

I see in the Documentation for GroPlot there is this entity construction

GeoVariant[Entity["Country", "UnitedStates"], "AllAreas"]

So this works:

GeoListPlot[{GeoVariant[Entity["Country", "UnitedStates"], 
   "AllAreas"], Entity["Country", "Netherlands"]}, ImageSize -> 1200, 
 GeoRange -> "World"]

Somewhat obscure...

POSTED BY: David Reiss

I am guessing that the design decision here is that (as was mentioned in those google groups postings) the for GeoPlot the entities are only considered to be closed polygons... (but what happens for the Philippines? Well,

GeoListPlot[{Entity["Country", "Philippines"]}, ImageSize -> 800]]

...so much for that theory (also there's a mismatch between the hi-lighted polygons and the underlying map data and some islands seem not to be included)

POSTED BY: David Reiss

That is very nice! So I can definitely include it!

I still think, though, that it should be included by default. It's a very substantial amount of land that is missing!!

POSTED BY: Sander Huisman

Yes, and oil!

POSTED BY: David Reiss

By the way, I would never have figured this out if it was not in an example in the documentation. I tried several attempts at entity discovery using control-= but didn't come up with an equivalent except to explicitly include Alaska as an additional entity.

POSTED BY: David Reiss

Indeed, The Netherlands is by default composed of multiple parts:

GeoListPlot[Entity["Country", "Netherlands"], ImageSize -> 1200]

So I really see no reason to not include (a rough shape of) Alaska in the default polygon...

POSTED BY: Sander Huisman

You will get no argument from me! ;-)

POSTED BY: David Reiss

As in:

GeoListPlot[{Entity["Country", "UnitedStates"], 
  Entity["AdministrativeDivision", {"Alaska", "UnitedStates"}]}]
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract