Open odadoun opened 3 years ago
hi @odadoun
thanks for your interest. In your question you've got two unique codes for Rostock:
Then, for each of them you've got two shapes, screenshots taken from my notebook
Rostock Landkreis is divided between the mainland, and a little island
Rostock city has two polygons, but one is actually an estuary/water body (took a screenshot from my notebook, setting alpha to 0.2 for better visualization)
See OSM for more detail https://duckduckgo.com/?q=rostock&t=newext&atb=v247-1&ia=maps&iaxm=maps
Thanks for the explanation
e=cg.GeoCountry('DEU') a=e.get_data() print(list(a.loc[a.name_subregion.isin(['Rostock'])]['code_subregion'])) return ['13003', '13003', '13072', '13072'] Question: one subregion name gives 4 codes names, it is ok ? The question concerns all those name (the number correspond to the number of code return)
{'Rostock': 4, 'Dithmarschen': 3, 'Pinneberg': 3, 'Leer': 3, 'Flensburg': 2, 'Kiel': 2, 'Nordfriesland': 2, 'Ostholstein': 2, 'Plön': 2, 'Rendsburg-Eckernförde': 2, 'Schleswig-Flensburg': 2, 'Steinburg': 2, 'Vorpommern-Rügen': 2, 'Nordwestmecklenburg': 2, 'Vorpommern-Greifswald': 2, 'Leipzig': 2, 'Hamburg': 2, 'Cuxhaven': 2, 'Stade': 2, 'Emden': 2, 'Osnabrück': 2, 'Wilhelmshaven': 2, 'Aurich': 2, 'Friesland': 2, 'Wittmund': 2, 'Bremen': 2, 'Bremerhaven': 2, 'Kassel': 2, 'Kaiserslautern': 2, 'Heilbronn': 2, 'Karlsruhe': 2, 'Konstanz': 2, 'München': 2, 'Rosenheim': 2, 'Landshut': 2, 'Passau': 2, 'Regensburg': 2, 'Bamberg': 2, 'Bayreuth': 2, 'Coburg': 2, 'Hof': 2, 'Ansbach': 2, 'Fürth': 2, 'Aschaffenburg': 2,