We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c35e3 commit 7a304a3Copy full SHA for 7a304a3
1 file changed
library/hatomap.py
@@ -173,7 +173,7 @@ class RasterTileServer:
173
174
@staticmethod
175
def _get_image_content(url):
176
- img = cv2.imdecode(
+ return cv2.imdecode(
177
np.asarray(
178
bytearray(
179
requests.get(
@@ -185,11 +185,6 @@ def _get_image_content(url):
185
-1,
186
)
187
188
- if img is None:
189
- print(url)
190
-
191
- return img
192
193
def request(self, bbox: WebMercatorPixelBBox) -> np.ndarray:
194
(tl_tilepx, rb_tilepx) = bbox.covered_tiles()
195
0 commit comments