From cf8993c73db69674aa154f4bfd5b3a7688aeb8b4 Mon Sep 17 00:00:00 2001 From: Denis Rykov Date: Sun, 10 Oct 2021 23:05:22 +0200 Subject: [PATCH] Fix internal warnings --- tests/test_georaster_tiling.py | 2 +- tests/util/test_projections.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_georaster_tiling.py b/tests/test_georaster_tiling.py index 303b2033..b4724216 100644 --- a/tests/test_georaster_tiling.py +++ b/tests/test_georaster_tiling.py @@ -95,7 +95,7 @@ class GeoRaster2TestGetTile(BaseGeoRasterTestCase): def test_geo_bounding_tile(self): gr = self.read_only_virtual_geo_raster() - gv = gr.footprint().reproject(CRS({'init': 'epsg:4326'})) + gv = gr.footprint().reproject(WGS84_CRS) bounding_tile = mercantile.bounding_tile(*gv.get_shape(gv.crs).bounds) self.assertEqual(bounding_tile, (37108, 25248, 16)) diff --git a/tests/util/test_projections.py b/tests/util/test_projections.py index 86a80d14..9c353d7f 100644 --- a/tests/util/test_projections.py +++ b/tests/util/test_projections.py @@ -1,10 +1,11 @@ from shapely.geometry import Point from affine import Affine +from telluric.constants import WGS84_CRS from telluric.util import projections -source_crs = {'init': 'epsg:4326'} +source_crs = WGS84_CRS source_shape = Point(0.0, 0.0)