GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Sorting areas into "county" and "county" into "states"  XML
Forum Index -> General
Author Message
uflidd



Joined: 22/03/2009 21:16:17
Messages: 2
Offline

Hi,

Earlier (about a year ago) I imported some of the countries I found here at geonames into my database. That time I was able to import the geo data into 4 tables for a 4 level hierarchic system of it, which was sorted into what "county" and "state" each area belongs to.

The following tables was created:

Country
.CountryID
.CountryName

State
.StateID
.CountryID
.Statename

County
.CountyID
.StateID
.Countyname

Area
.AreaID
.CountyID
.Areaname

I wanted to do the same for Japan today, and downloaded the JP.zip file from here: http://download.geonames.org/export/dump/

This dump seems like it has data with all the areas, but the areas are not sorted into what county > state the area belongs to. Am I right?

Where can I find the data I need to sort out what area belong to what "county" and what "county" belongs to which "state"?

Thanks for a Great service Marc, you rock the world!

Kind regards
Joe
marc



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

We don't have this information.
Someone once sent me the following link:
http://www.mlit.go.jp/kokudokeikaku/gis/index.html
I don't speak Japanese so I don't know whether the information is still there...

Best

Marc

[WWW]
uflidd



Joined: 22/03/2009 21:16:17
Messages: 2
Offline

You don't have it for Japan or you don't have it for any country?

I`m pretty sure that it was from you we got the data with states and counties on the other countries we inserted.



marc



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

We have it for other countries. Look at the fields 'adminCode1-4'. If the fields are filled then the information is available.

Marc

[WWW]
david masclet



Joined: 26/11/2007 11:49:58
Messages: 67
Offline

Hi

The Gisgraphy framework has an importer that can import the Country and the ADM in a tree structure (ADM4->ADM3->ADM2->ADM1). For a given ADM, you can ask for his parent and childs

www.gisgraphy.com is the project site
services.gisgraphy.com is a site where the gisgraphy framework is installed (so you can test it before install it)

Hope it helps (if i understand the need)

David
[WWW]
dbaerwaldt



Joined: 10/07/2009 19:22:17
Messages: 4
Offline

Can anyone show me how to get the states or provinces for any given country?

I can get all the countries but seem to be unable to get the states (ie. states in the USA)

Help
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team