@@ -4330,17 +4330,17 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
43304330 ypixels = int (self .aspect * xpixels )
43314331
43324332 # 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 )
43444344
43454345 # Print URL in verbose mode.
43464346 if verbose :
@@ -4349,8 +4349,8 @@ def arcgisimage(self, server="http://server.arcgisonline.com/ArcGIS",
43494349 if cachedir is not None :
43504350
43514351 # 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 )
43544354
43554355 # Check if the cache directory exists, if not create it.
43564356 if not os .path .exists (cachedir ):
0 commit comments