GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Africa and hierarchy.zip [closed]  XML
Forum Index -> General
Author Message
suizokukan



Joined: 20/11/2016 14:52:25
Messages: 6
Location: France
Offline

tl;dr : why hierarchy.zip does not store African places ?
full story
I'm trying to figure out how I can use Geonames to get a full list of towns/regions/countries' names, the list being sorted respecting the hierarchy (e.g. Earth > Antarctica > Bouvet Island).
So far I got an interesting result mixing the data from allCountries.zip and from hierarchy.zip; here are the first lines of the results :
Code:
 Earth (6295630) [0.0, 0.0]
 | Antarctica (6255152) [-78.15856, 16.40626]
 | | Bouvet Island (3371123) [-54.43333, 3.4]
 | | South Georgia and the South Sandwich Islands (3474415) [-56.0, -33.0]
 | | Territory of Heard Island and McDonald Islands (1547314) [-53.11711, 73.50952]
 | | Territory of the French Southern and Antarctic Lands (1546748) [-43.0, 67.0]
 | | | Archipel des Kerguelen (1546558) [-49.25, 69.16667]
 | | | La Terre-Adélie (6690917) [-59.99856, 138.9913]
 | | | Îles Éparses de l'océan Indien (6690916) [-17.04333, 42.7448]
 | | | | Glorioso Islands (1024037) [-11.5, 47.33333]
 | | | | Juan de Nova Island (1024029) [-17.0558, 42.72712]
 | | | | Tromelin Island (933908) [-15.89332, 54.52377]
 | | | | Bassas da India (936202) [-21.41667, 39.7]
 | | | Archipel des Crozet (936339) [-46.41667, 51.0]
 | Asia (6255147) [29.84064, 89.29688]
 | | Islamic Republic of Afghanistan (1149361) [33.0, 66.0]
 [...]
 


The following continents are in the hierarchy.zip file :
Code:
 Antarctica (6255152) [-78.15856, 16.40626]
 Asia (6255147) [29.84064, 89.29688]
 Europe (6255148) [48.69096, 9.14062]
 North America (6255149) [46.07323, -100.54688]
 Oceania (6255151) [-18.31281, 138.51562]
 South America (6255150) [-14.60485, -57.65625]
 


Where is Africa ? The allCountries.zip file does contain African towns like Cape Town (index=3368972)
Is hierarchy.zip an outdated file ? Or are the missing informations stored somewhere else ?

Any help would be appreciated !
[WWW]
marc



Joined: 08/12/2005 07:39:47
Messages: 3993
Offline

Looks as if something is wrong with your queries or you load process. Africa is certainly in the hierarchy file (as parent of the sub regions).

Marc

[WWW]
suizokukan



Joined: 20/11/2016 14:52:25
Messages: 6
Location: France
Offline

I feel so confused about an error I did : you're right, hierarchy.txt is ok[i]. Thank's for your quick reply.

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team