Skip to content

Some countries borders not showing up in map #566

@guidocioni

Description

@guidocioni

I remember seeing this already a long time ago but I never managed to solve it.

I'm plotting a map using this

m = Basemap(projection='merc',
                llcrnrlat=extents[2],
                urcrnrlat=extents[3],
                llcrnrlon=extents[0],
                urcrnrlon=extents[1],
                lat_ts=20,
                resolution='h')

m.fillcontinents(color='lightgray', lake_color='#2081C3', zorder=1)
m.drawlsmask(land_color=(0, 0, 0, 0), ocean_color='#2081C3',
                 resolution='f', lakes=True, zorder=2, grid=1.25)

ax = plt.gca()

m.drawcountries(linewidth=0.8)
m.drawcoastlines()

m.readshapefile(f'{SHAPEFILES_DIR}/ITA_adm_shp/ITA_adm1',
                        'ITA_adm1', linewidth=0.8, color='black', zorder=5)

but some countries (like Switzerland) don't show up.

realtime_wind_italia

Weirdly enough when centering the projection over France Switzerland shows up

realtime_wind_francia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions