@@ -981,7 +981,8 @@ def _readboundarydata(self,name):
981981 # coordinates, then transform back. This is
982982 # because these projections are only defined on a hemisphere, and
983983 # some boundary features (like Eurasia) would be undefined otherwise.
984- if self .projection in ['ortho' ,'gnom' ,'nsper' ] and name == 'gshhs' :
984+ tostere = ['ortho' ,'gnom' ,'nsper' ,'nplaea' ,'npaeqd' ,'splaea' ,'spaeqd' ]
985+ if self .projection in tostere and name == 'gshhs' :
985986 containsPole = True
986987 lon_0 = self .projparams ['lon_0' ]
987988 lat_0 = self .projparams ['lat_0' ]
@@ -1102,8 +1103,7 @@ def _readboundarydata(self,name):
11021103 # to map projection coordinates.
11031104 # special case for ortho/gnom/nsper, compute coastline polygon
11041105 # vertices in stereographic coords.
1105- if name == 'gshhs' and self .projection in \
1106- ['ortho' ,'gnom' ,'nsper' ]:
1106+ if name == 'gshhs' and self .projection in tostere :
11071107 b [:,0 ], b [:,1 ] = maptran (b [:,0 ], b [:,1 ])
11081108 else :
11091109 b [:,0 ], b [:,1 ] = self (b [:,0 ], b [:,1 ])
@@ -1120,7 +1120,7 @@ def _readboundarydata(self,name):
11201120 # for ortho/gnom/nsper projection, all points
11211121 # outside map projection region are eliminated
11221122 # with the above step, so we're done.
1123- if self .projection in [ 'ortho' , 'gnom' , 'nsper' ] :
1123+ if self .projection in tostere :
11241124 polygons .append (list (zip (bx ,by )))
11251125 polygon_types .append (type )
11261126 continue
@@ -1147,7 +1147,7 @@ def _readboundarydata(self,name):
11471147 # if projection in ['ortho','gnom','nsper'],
11481148 # transform polygon from stereographic
11491149 # to ortho/gnom/nsper coordinates.
1150- if self .projection in [ 'ortho' , 'gnom' , 'nsper' ] :
1150+ if self .projection in tostere :
11511151 # if coastline polygon covers more than 99%
11521152 # of map region for fulldisk projection,
11531153 # it's probably bogus, so skip it.
0 commit comments