Skip to content

Commit

Permalink
Fixed a plotting problem
Browse files Browse the repository at this point in the history
  • Loading branch information
jolivetr committed Nov 7, 2019
1 parent 21e8481 commit 1905a66
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion geodeticplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,19 @@ def drawCoastlines(self, color='k', linewidth=1.0, linestyle='solid',
landcolor = None
if drawLand: landcolor = 'lightgrey'


# Resolution
if resolution == 'auto' or resolution == 'intermediate':
resolution = '50m'
elif resolution == 'coarse' or resolution == 'low':
resolution = '110m'
elif resolution == 'fine':
resolution = '10m'
else:
assert False, 'Unknown resolution : {}'.format(resolution)

# coastlines in cartopy are multipolygon objects. Polygon has exterior, which has xy
self.coastlines = cfeature.GSHHSFeature(scale=resolution, edgecolor=color, facecolor=landcolor,
self.coastlines = cfeature.GSHHSFeature(scale='auto', edgecolor=color, facecolor=landcolor,
linewidth=linewidth, linestyle=linestyle, zorder=zorder, alpha=0.6)

## MapScale
Expand Down

0 comments on commit 1905a66

Please sign in to comment.