allCountries missing countries

150 views
Skip to first unread message

Danijel Kralj

unread,
Jun 13, 2012, 8:11:37 AM6/13/12
to geon...@googlegroups.com
Hi all,

I recently found out that the allCountries.zip is in fact missing a lot of countries:

Latvia
LV.zip

Estonia
EE.zip

Romania
RO.zip


to name a few. Is this intentional? Does one need to import each country manually to be sure?


cat allCountries.txt | grep -P "EE\t"
AR    2812    CARLOS LEMEE    BUENOS AIRES    B                    -34.3167    -59.1208    3
AR    3230    LA HAYDEE    CORRIENTES    W                    -29.6833    -57.1083    3
VA    00120    Citta' Del Vaticano                EE                   
VA    00120    Vaticano                EE               


regards

Marc Wick

unread,
Jun 13, 2012, 12:22:21 PM6/13/12
to geon...@googlegroups.com
all countries are included in the allCountries file. your local file is
corrupt or your query is broken.

Marc
> --
> You received this message because you are subscribed to the Google
> Groups "GeoNames" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/geonames/-/FDQ4DCtR_OsJ.
> To post to this group, send email to geon...@googlegroups.com.
> To unsubscribe from this group, send email to
> geonames+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/geonames?hl=en.

Danijel Kralj

unread,
Jun 13, 2012, 5:17:28 PM6/13/12
to geon...@googlegroups.com
I would like that to be the case to, but it's not, I've tripple checked it. Also did a check right now

MD5 (allCountries.zip) = bea82241432d147336881ca5dec29837
File has 911346 lines.
9,0M 13 Jun 23:09 allCountries.zip

The file I am downloading is
http://download.geonames.org/export/zip/allCountries.zip
allCountries.zip        13-Jun-2012 06:19  9.0M 

Inside of file (not db)
LT    99069    Vainuto k.            Šilutės r. sav.                55.365    21.8644    3
LT    99069    Skiržemės k.            Šilutės r. sav.                55.365    21.8644    3
LU    L-1009    Luxembourg                            49.6117    6.13    4
LU    L-1010    Luxembourg                            49.6117    6.13    4
....

LU    L-9992    Weiswampach                            50.1372    6.075    4
LU    L-9999    Wemperhardt                            50.1556    6.0533    4
LU    L-9999    Troisvierges                            50.1211    6.0003    4
MC    98000    Les Moneghetti    Monaco    01    Monaco    01    Les Moneghetti        43.7375    7.4153   
MC    98000    Port de Monaco    Monaco    01    Monaco    01    La Condamine        43.7361    7.425   
MC    98000    Condamine    Monaco    01    Monaco    01    La Condamine        43.7333    7.4167   
MC    98000    Port Hercule    Monaco    01    Monaco    01    Fontvieille        43.7361    7.425   


LV is missing, and the others that I mentioned. If it's corrupted then something's wrong with my mac and my 2 server zip binary. But from your answer I understand that it should contain all countries which is great as I need that one, could someone double-check my findings?
> geonames+unsubscribe@googlegroups.com.

Marc Wick

unread,
Jun 14, 2012, 12:18:21 AM6/14/12
to geon...@googlegroups.com
Danijel

The file is not 9M but 219M and has over 8.2Mio rows.

Best

Marc

Danijel Kralj wrote:
> I would like that to be the case to, but it's not, I've tripple checked
> it. Also did a check right now
>
> MD5 (allCountries.zip) = bea82241432d147336881ca5dec29837
> File has 911346 lines.
> 9,0M 13 Jun 23:09 allCountries.zip
>
> The file I am downloading is
> http://download.geonames.org/export/zip/allCountries.zip
> allCountries.zip 13-Jun-2012 06:19 9.0M
>
> Inside of file (not db)
> LT 99069 Vainuto k. ļæ½ilutļæ½s r. sav.
> 55.365 21.8644 3
> LT 99069 Skirļæ½emļæ½s k. ļæ½ilutļæ½s r. sav.
> <https://groups.google.com/d/msg/geonames/-/FDQ4DCtR_OsJ>.
> > To post to this group, send email to geon...@googlegroups.com
> <mailto:geon...@googlegroups.com>.
> > To unsubscribe from this group, send email to
> > geonames+u...@googlegroups.com
> <mailto:geonames%2Bunsu...@googlegroups.com>.
> > For more options, visit this group at
> > http://groups.google.com/group/geonames?hl=en
> <http://groups.google.com/group/geonames?hl=en>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "GeoNames" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/geonames/-/j4nla5qoib4J.
> To post to this group, send email to geon...@googlegroups.com.
> To unsubscribe from this group, send email to
> geonames+u...@googlegroups.com.

Denis Arnaud

unread,
Jun 14, 2012, 4:48:29 AM6/14/12
to geon...@googlegroups.com
Hi Danijel!

There are indeed two data feeds:
* The "regular"/"standard" one, from http://download.geonames.org/export/dump and explained in http://download.geonames.org/export/dump/readme.txt. In particular the allCountries.zip files is http://download.geonames.org/export/dump/allCountries.zip (219MB).
* The postal/ZIP code one, which is the one you retrieved

It should explain your issue :)

Kind regards

Denis

Danijel Kralj

unread,
Jun 14, 2012, 4:54:37 AM6/14/12
to geon...@googlegroups.com
Thank you! That was a simple and nice answer to the question, did not notice the two different /zip and /dump folders.

Danijel Kralj

unread,
Jun 14, 2012, 7:18:14 AM6/14/12
to geon...@googlegroups.com
So I'm back, somewhat 'smarter' than before. Maybe I can rephrase my question.

I am importing the allCountries.zip for the POSTAL CODES, not the countries. This file does not include all postal codes available from the http://download.geonames.org/export/zip/

Is this to expect? the LV.zip is for example not included in the allCountries.zip

Hope it makes more sense now.

Marc Wick

unread,
Jun 20, 2012, 2:01:08 AM6/20/12
to geon...@googlegroups.com, Danijel Kralj
only the files that exist are included in the allCountries.zip. LV does
not exist as individual file and is consequently not included in the
allCountries.zip.

Marc

Danijel Kralj wrote:
> So I'm back, somewhat 'smarter' than before. Maybe I can rephrase my
> question.
>
> I am importing the allCountries.zip for the POSTAL CODES, not the
> countries. This file does not include all postal codes available from
> the http://download.geonames.org/export/zip/
>
> Is this to expect? the LV.zip is for example not included in the
> allCountries.zip
>
> Hope it makes more sense now.
>
>
> On Thursday, June 14, 2012 10:54:37 AM UTC+2, Danijel Kralj wrote:
>
> Thank you! That was a simple and nice answer to the question, did
> not notice the two different /zip and /dump folders.
>
> On Thursday, June 14, 2012 10:48:29 AM UTC+2, Denis Arnaud wrote:
>
> Hi Danijel!
>
> There are indeed two data feeds:
> * The "regular"/"standard" one, from
> http://download.geonames.org/export/dump
> <http://download.geonames.org/export/dump> and explained in
> http://download.geonames.org/export/dump/readme.txt
> <http://download.geonames.org/export/dump/readme.txt>. In
> <https://groups.google.com/d/msg/geonames/-/FDQ4DCtR_OsJ>.
> > To post to this group, send email to
> geon...@googlegroups.com
> <mailto:geon...@googlegroups.com>.
> > To unsubscribe from this group, send email to
> > geonames+u...@googlegroups.com
> <mailto:geonames%2Bunsu...@googlegroups.com>.
> > For more options, visit this group at
> > http://groups.google.com/group/geonames?hl=en
> <http://groups.google.com/group/geonames?hl=en>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "GeoNames" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/geonames/-/b2QlVNYXACkJ.
> To post to this group, send email to geon...@googlegroups.com.
> To unsubscribe from this group, send email to
> geonames+u...@googlegroups.com.

Danijel Kralj

unread,
Jun 20, 2012, 3:19:23 AM6/20/12
to geon...@googlegroups.com, Danijel Kralj
Thanks for the answer. You were right yet again, I kept mixing the 2 folders over and over.
>                 <mailto:geonames@googlegroups.com>.
>                  > To unsubscribe from this group, send email to
>                  > geonames+unsubscribe@googlegroups.com
>                 <mailto:geonames%2Bunsu...@googlegroups.com>.
>                  > For more options, visit this group at
>                  > http://groups.google.com/group/geonames?hl=en
>                 <http://groups.google.com/group/geonames?hl=en>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "GeoNames" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/geonames/-/b2QlVNYXACkJ.
> To post to this group, send email to geon...@googlegroups.com.
> To unsubscribe from this group, send email to
> geonames+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages