Skip to content

Commit 7a304a3

Browse files
committed
test
1 parent d3c35e3 commit 7a304a3

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

library/hatomap.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class RasterTileServer:
173173

174174
@staticmethod
175175
def _get_image_content(url):
176-
img = cv2.imdecode(
176+
return cv2.imdecode(
177177
np.asarray(
178178
bytearray(
179179
requests.get(
@@ -185,11 +185,6 @@ def _get_image_content(url):
185185
-1,
186186
)
187187

188-
if img is None:
189-
print(url)
190-
191-
return img
192-
193188
def request(self, bbox: WebMercatorPixelBBox) -> np.ndarray:
194189
(tl_tilepx, rb_tilepx) = bbox.covered_tiles()
195190

0 commit comments

Comments
 (0)