It's improving and I appreciate the effort. BUt it isn't quite there yet. What I really need is for GeoRegionValuePlot to work on these places. I think it fails because if you run, say, AdministrativeDivisionData[Flatten[prefectures]
, "Position"] the output is:
{Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"],
Missing["NotApplicable"], Missing["NotApplicable"]}
You can try to run the following code and you'll see that the map it produces doesn't color any of Guinea nor the districts in Sierra Leone that are in the Southern District.
provinces = CountryData["SierraLeone", "AdministrativeDivisions"];
districts = AdministrativeDivisionData[#, "Subdivisions"] & /@ provinces;
districts = Flatten[districts];
regions = CountryData["Guinea", "AdministrativeDivisions"];
prefectures = AdministrativeDivisionData[#, "Subdivisions"] & /@ regions;
counties = CountryData["Liberia", "AdministrativeDivisions"];
alladmindistricts = Flatten[Join[prefectures, districts, counties]];
Print["Length[alladmindistricts]=", Length[alladmindistricts]];
rints = RandomInteger[100, 63];
GeoGraphics[ MapIndexed[{EdgeForm[Black], FaceForm[ColorData[1][#2[[1]]]], Polygon[#]} &, alladmindistricts]]
GeoRegionValuePlot[Thread[alladmindistricts -> Log10[rints]],
ColorFunction -> ColorData["Rainbow"],
GeoBackground -> GeoStyling["StreetMap"], ImageSize -> 700]