wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion ============================================================== .. py:module:: wolfhece._builtin_plugins.dtm_wallonia_1m.tests.test_companion .. autoapi-nested-parse:: Integration tests for the dtm_wallonia_1m built-in plugin. These tests make real HTTP requests to download the tile-index shapefile and, optionally, individual 1 m DTM tiles. Run them with:: pytest -m network wolfhece/_builtin_plugins/dtm_wallonia_1m/tests/ -v They are skipped in offline / CI environments unless the ``network`` mark is explicitly requested. Geographic notes ---------------- All coordinates are in **EPSG:31370 (Belgian Lambert 1972)**. The approximate geographic centre of Wallonia is around x = 214 500 m, y = 98 000 m (Condroz plateau, near Ciney). The 500 m × 500 m test window is centred there. Module Contents --------------- .. py:function:: _make_bounds_vec(xmin: float, ymin: float, xmax: float, ymax: float) Return a closed :class:`~wolfhece.PyVertexvectors.vector` bounding rectangle. .. py:data:: _HALF :value: 250.0 .. py:data:: _XMIN :value: 214250.0 .. py:data:: _XMAX :value: 214750.0 .. py:data:: _YMIN :value: 97750.0 .. py:data:: _YMAX :value: 98250.0 .. py:class:: TestDtmWalloniaTiles Tests for the internal :class:`_DtmWalloniaTiles` tile manager. .. py:method:: test_download_index() The tile-index shapefile is downloaded (or retrieved from cache). .. py:method:: test_extract_center_wallonia_500m() A 500 m × 500 m crop around the centre of Wallonia returns a valid WolfArray. .. py:class:: TestDtmWallonia1mCompanion Tests for the public API of :class:`DtmWallonia1mCompanion`. .. py:method:: test_get_dtm_returns_wolf_array() ``get_dtm_1m(vector)`` returns a valid WolfArray without a viewer.