Hi there,
I tried (in vain) to import the cities data (> 15000) into a postgres database.
Created first the table (guessed the structure):
Code:
create table geonames_cities (
geonameid int,
countrycode varchar(3),
fcode varchar(5),
fcodeName varchar(200),
fcl varchar(2),
fclName varchar(100),
name varchar(200),
wikipedia varchar(100),
lng float,
lat float,
population int
);
Then, tried to import the txt file:
Code:
\copy geonames_cities (population, name, fclName, lat, lng, fcl, fcode, countrycode, geonameID) from 'cities15000.txt' null as ''
But it doesn't work....
Can anyone give me the correct command our a hint what I am doing wrong?
Thanks a lot!
____________________________________________________________________
Lean Back and Relax - Enjoy some Nature Photography
http://photoblog.la-famille-schwarzer.de
Appetite for Global Data? UNEP GEO Data Portal:
http://geodata.grid.unep.ch
____________________________________________________________________