Hello, I would like to get a list of all german cities with its borders (as polygon) and name. I started to import the data into the database by using osmosis: ./osmosis --read-pbf file=/mnt/hgfs/VM-SharedFolder/germany.osm.pbf --tf accept-nodes place=village,town,city --tf accept-ways place=village,town,city --write-pgsql host=localhost database=DB_NAME user=USER password=PWD This filled the database tables (nodes, relations etc.) but I do not know how to extract a polygon by using these data. Any hints? Thank you, hem asked 24 Sep '11, 13:05 hem |
I cannot give you a concrete solution, but have a general look also at the blog of Jochen Topf about boundary relations. And if you have more detailed questions I would even recommend to ask further at the German subforum at forum.osm.org answered 24 Sep '11, 13:49 stephan75 |
What do you mean by "extract a polygon"? You can get the name and the polygon of all the municipalities boundaries from the database with such a query:
You can also download shapefiles from cloudmade or geofabrik answered 28 Sep '11, 10:26 NicolasDumoulin |