DigitalGlobe / gbdxtools

(Deprecated) Python SDK for using GBDX
MIT License
74 stars 57 forks source link

ISS 777: Fix hardcoded TmsImage url #789

Closed mgregor-oa closed 4 years ago

mgregor-oa commented 4 years ago

I updated the functionality of the class. It now requires you to pass a url to the class. I have removed all reference to mapbox and access_tokens. This should now work for any tms service passed to it.


url = r"https://a.tile.openstreetmap.org/{z}/{x}/{y}.png"
img = TmsImage(url=url, zoom=18)
img2 = TmsImage(url=url, zoom=18, bbox=bbox)
aoi = img.aoi(bbox=bbox)
print(img)
print(aoi)
print(img2)
aoi.plot(), img2.plot()
drwelby commented 4 years ago

Tests pass locally for me

drwelby commented 4 years ago

Looks good, thanks for the fix