Group Abstract Group Abstract

Message Boards Message Boards

[?] Why does GeoGraphics[] redraw the DeGaulle image over Corsica?

Posted 9 years ago

I am trying a simple example from the GeoGraphics tutorial. I can see that Cosica is listed as part of the land mass of France:

GeoGraphics@Polygon[France]

However I would not expect this overlay app to redraw the image over the dis-contiguous polygon (i.e. Corsica). Is there a simple explanation? Is this a known problem?

The simple commands are:

dg0=EntityValue[Charles de Gaulle
, "Image"]

GeoGraphics[{GeoStyling[{"Image", dg0}], 
  Polygon[Entity["Country", "France"]]}]

Thanks in advance.

POSTED BY: Aeyoss Antelope
2 Replies

Entity["Country", "France"]["Polygon"] will return multiple Polygons. One polygon for mainland France and one for Corsica. This command applies an image to each of the polygons. You only want it applied to mainland France.

POSTED BY: Sean Clarke

This way it seems to work:

pol = Entity["Country", "France"]["Polygon"];
frPol = Polygon[GeoPosition[pol[[1, 1, 1]]]];
dg0 = Entity["Person", "CharlesDeGaulle::76d73"]["Image"];
GeoGraphics[{GeoStyling[{"Image", dg0}], frPol}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard