@@ -4215,7 +4215,7 @@ def warpimage(self,image="bluemarble",scale=None,**kwargs):
4215
4215
return im
4216
4216
4217
4217
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 ,\
4219
4219
dpi = 96 ,verbose = False ,** kwargs ):
4220
4220
"""
4221
4221
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',\
4232
4232
server web map server URL (default
4233
4233
http://server.arcgisonline.com/ArcGIS).
4234
4234
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'
4236
4236
image).
4237
4237
xpixels requested number of image pixels in x-direction
4238
4238
(default 400).
@@ -4284,9 +4284,6 @@ def arcgisimage(self,server='http://server.arcgisonline.com/ArcGIS',\
4284
4284
arcgisimage cannot handle images that cross
4285
4285
the dateline for cylindrical projections.""" )
4286
4286
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
4290
4287
# ypixels not given, find by scaling xpixels by the map aspect ratio.
4291
4288
if ypixels is None :
4292
4289
ypixels = int (self .aspect * xpixels )
0 commit comments