From 1169405b703244a752db12622b6d155419ad9242 Mon Sep 17 00:00:00 2001 From: Christopher Johns Date: Mon, 2 Dec 2024 17:09:15 +0000 Subject: [PATCH] Removed debugging code. --- digital_land/commands.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/digital_land/commands.py b/digital_land/commands.py index b410a15a..af9bb9f9 100644 --- a/digital_land/commands.py +++ b/digital_land/commands.py @@ -12,8 +12,6 @@ import geojson import shapely -import subprocess - from digital_land.package.organisation import OrganisationPackage from digital_land.check import duplicate_reference_check from digital_land.specification import Specification @@ -496,13 +494,6 @@ def dataset_dump_flattened(csv_path, flattened_dir, specification, dataset): if all(os.path.isfile(path) for path in temp_geojson_files): rfc7946_geojson_path = os.path.join(flattened_dir, f"{dataset_name}.geojson") - env = os.environ.copy() - - out, _ = subprocess.Popen( - ["ogr2ogr", "--version"], - stdout=subprocess.PIPE, - stderr=subprocess.DEVNULL, - ).communicate() env = ( dict(os.environ, OGR_GEOJSON_MAX_OBJ_SIZE="0") if get_gdal_version() >= Version("3.5.2")