[opengeodb] nur deutschland

Stephan Schuster stephan.s at gmx.net
Don Mar 20 20:37:24 CET 2008


Hallo,

> > Willst Du noch die entsprechenden Orts-Namen dazu, verwendest Du folgendes:
> >
> > SELECT plz.text_val, name.text_val, coord.lat, coord.lon
> > FROM geodb_textdata plz
> > LEFT JOIN geodb_textdata name ON name.loc_id=plz.loc_id
> > LEFT JOIN geodb_coordinates coord ON plz.loc_id = coord.loc_id
> > WHERE plz.text_type     = 500300000  /* ID für Postleitzahl */
> >   AND name.text_type    = 500100000 /* ID für name */;
> >   
> Das ergibt bei mir 53.167 Datensätze. Ich gehe davon aus bei Dir auch?

Die Größenordnung stimmt, allerdings sind es bei mir 60686.

Gruß
Stephan