[opengeodb] Liste der Länder
Sven Neuhaus
sn at heise.de
Mon Dez 10 09:30:32 CET 2007
Lucas Mengel schrieb:
> Gibts eigentlich irgendwo eine Liste mit den Länderbezeichnungen?
> Also quasi ein Index, welche Kennzahl welches Land bezeichnet?
Steht in der DB. So bekommt man z.B. die ISO-Kürzel heraus:
SELECT DISTINCT tx.loc_id, text_val AS staat
FROM geodb_textdata tx, geodb_locations lo
WHERE text_type = 500100001 /* ISO_3166_1_ALPHA_2 */
AND tx.loc_id = lo.loc_id
AND lo.loc_type = 100200000 /* State */
Gruss,
-Sven Neuhaus