Skip to content

Commit 0bc646b

Browse files
authored
Merge pull request #548 from matplotlib/bugfix-546
Fix broken Basemap.arcgisimage method
2 parents f370fd3 + 4938c58 commit 0bc646b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/basemap/src/mpl_toolkits/basemap/__init__.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -4215,7 +4215,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
42154215
return im
42164216

42174217
def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
4218-
service='ESRI_Imagery_World_2D',xpixels=400,ypixels=None,\
4218+
service='World_Imagery',xpixels=400,ypixels=None,\
42194219
dpi=96,verbose=False,**kwargs):
42204220
"""
42214221
Retrieve an image using the ArcGIS Server REST API and display it on
@@ -4232,7 +4232,7 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
42324232
server web map server URL (default
42334233
http://server.arcgisonline.com/ArcGIS).
42344234
service service (image type) hosted on server (default
4235-
ESRI_Imagery_World_2D, which is NASA 'Blue Marble'
4235+
'World_Imagery', which is NASA 'Blue Marble'
42364236
image).
42374237
xpixels requested number of image pixels in x-direction
42384238
(default 400).
@@ -4284,9 +4284,6 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
42844284
arcgisimage cannot handle images that cross
42854285
the dateline for cylindrical projections.""")
42864286
raise ValueError(msg)
4287-
if self.projection != 'cyl':
4288-
xmin = (180./np.pi)*xmin; xmax = (180./np.pi)*xmax
4289-
ymin = (180./np.pi)*ymin; ymax = (180./np.pi)*ymax
42904287
# ypixels not given, find by scaling xpixels by the map aspect ratio.
42914288
if ypixels is None:
42924289
ypixels = int(self.aspect*xpixels)

0 commit comments

Comments
 (0)