Hi Mathieu Vinette,
I understand you are able to get the boundary of the polygons on geoglobe, but you wish to get the filled shapes with different colors instead, as shown in the Google Earth image.
To fill the polygons on a geoglobe in MATLAB, it is not possible to directly use a function like fill or geofill because these are not directly compatible with the geoglobe. However, the color information is given in the "kmlPoly" structure for each polygon. Plot the polygons with their respective colors using geoplot3 as shown in the code snippet below:
uif = uifigure;
g = geoglobe(uif,'Basemap','satellite','NextPlot','add');
for x=1:length(kmlPoly)
geoplot3(g,kmlPoly(x).Lat,kmlPoly(x).Lon,[], Color = kmlPoly(x).Color); % Getting the colour from kmlPoly
end
g.Terrain = 'none';
Here is the output of the above code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1681816/image.png)
Please refer to the following documentation to learn more about geoglobe and geoplot3.
- https://www.mathworks.com/help/map/ref/geoglobe.html
- https://www.mathworks.com/help/map/ref/geoplot3.html
Hope it helps!