marceloprates / prettymaps

A small set of Python functions to draw pretty maps from OpenStreetMap data. Based on osmnx, matplotlib and shapely libraries.
GNU Affero General Public License v3.0
11.12k stars 522 forks source link

Oakland Harbor Not Rendering Correctly #78

Open tklutey opened 2 years ago

tklutey commented 2 years ago

Hi,

I am rendering a map of West Oakland, CA, using the below code:

layers = {
                    'perimeter': {'circle': False, 'dilate': dilate},
                    'streets': {
                        'width': {
                                'primary': 5,
                                'secondary': 4,
                                'tertiary': 3,
                                'residential': 2,
                                'footway': 1,
                        },
                        'circle': False,
                        'dilate': dilate
                    },
                    'building': {'tags': {'building': True, 'landuse': 'construction'}, 'union': False, 'circle': False, 'dilate': dilate},
                    'water': {'tags': {
                                'waterway': True,
                                'water': True,
                                'harbour': True,
                                'marina': True,
                                'bay': True,
                                'river': True
                     }, 'circle': False, 'dilate': dilate},
                    'green': {'tags': {'landuse': 'grass', 'natural': ['island', 'wood'], 'leisure': 'park'}, 'circle': False, 'dilate': dilate},
                    'forest': {'tags': {'landuse': 'forest'}, 'circle': False, 'dilate': dilate},
                    'parking': {'tags': {'amenity': 'parking', 'highway': 'pedestrian', 'man_made': 'pier'}, 'circle': False, 'dilate': dilate},

                },
                drawing_kwargs = {
                    'background': {'fc': '#F2F4CB', 'ec': '#dadbc1', 'hatch': 'ooo...', 'zorder': -1},
                    'perimeter': {'fc': '#F2F4CB', 'ec': '#dadbc1', 'lw': 0, 'hatch': 'ooo...',  'zorder': 0},
                    'green': {'fc': '#D0F1BF', 'ec': '#2F3737', 'lw': 1, 'zorder': 1},
                    'forest': {'fc': '#64B96A', 'ec': '#2F3737', 'lw': 1, 'zorder': 1},
                    'water': {'fc': '#a1e3ff', 'ec': '#2F3737', 'hatch': 'ooo...', 'hatch_c': '#85c9e6', 'lw': 1, 'zorder': 2},
                    'parking': {'fc': '#F2F4CB', 'ec': '#2F3737', 'lw': 1, 'zorder': 3},
                    'streets': {'fc': '#2F3737', 'ec': '#475657', 'alpha': 1, 'lw': 0, 'zorder': 3},
                    'building': {'palette': ['#FFC857', '#E9724C', '#C5283D'], 'ec': '#2F3737', 'lw': .5, 'zorder': 4},
                },

As you can see, though, my output does not match the OSM map, as the Oakland Inner Harbor is not rendering: image image

Any idea what could be going on here?