@@ -4330,17 +4330,17 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
4330
4330
ypixels = int (self .aspect * xpixels )
4331
4331
4332
4332
# Construct a URL using the ArcGIS Server REST API.
4333
- basemap_url = \
4334
- "%s/rest/services/%s/MapServer/export?\
4335
- bbox=%s,%s,%s,%s&\
4336
- bboxSR=%s&\
4337
- imageSR=%s&\
4338
- size=%s,%s&\
4339
- dpi=%s&\
4340
- format=png32&\
4341
- transparent=true&\
4342
- f=image" % \
4343
- (server , service , xmin , ymin , xmax , ymax , self .epsg , self .epsg , xpixels , ypixels , dpi )
4333
+ basemap_url = "" . join ([
4334
+ "%s/rest/services/%s/MapServer/export?" ,
4335
+ " bbox=%s,%s,%s,%s&" ,
4336
+ " bboxSR=%s&" ,
4337
+ " imageSR=%s&" ,
4338
+ " size=%s,%s&" ,
4339
+ " dpi=%s&" ,
4340
+ " format=png32&" ,
4341
+ " transparent=true&" ,
4342
+ " f=image",
4343
+ ]) % (server , service , xmin , ymin , xmax , ymax , self .epsg , self .epsg , xpixels , ypixels , dpi )
4344
4344
4345
4345
# Print URL in verbose mode.
4346
4346
if verbose :
@@ -4349,8 +4349,8 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
4349
4349
if cachedir is not None :
4350
4350
4351
4351
# Generate a filename for the cached file.
4352
- filename = "%s-bbox-%s-%s-%s-%s-bboxsr%s-imagesr%s-size-%s-%s-dpi%s.png" % \
4353
- (service , xmin , ymin , xmax , ymax , self .epsg , self .epsg , xpixels , ypixels , dpi )
4352
+ filename = "%s-bbox-%s-%s-%s-%s-bboxsr%s-imagesr%s-size-%s-%s-dpi%s.png" % \
4353
+ (service , xmin , ymin , xmax , ymax , self .epsg , self .epsg , xpixels , ypixels , dpi )
4354
4354
4355
4355
# Check if the cache directory exists, if not create it.
4356
4356
if not os .path .exists (cachedir ):
0 commit comments