From 81b4922aa2d5142a1f0abd1463ce1a5b11ae9a15 Mon Sep 17 00:00:00 2001 From: Tara Drwenski Date: Thu, 3 Oct 2024 10:11:12 -0600 Subject: [PATCH] Fix epsg database path for windows --- common/src/main/java/uk/ac/rdg/resc/edal/util/GISUtils.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/common/src/main/java/uk/ac/rdg/resc/edal/util/GISUtils.java b/common/src/main/java/uk/ac/rdg/resc/edal/util/GISUtils.java index 02c6c3e65..adf7db36e 100644 --- a/common/src/main/java/uk/ac/rdg/resc/edal/util/GISUtils.java +++ b/common/src/main/java/uk/ac/rdg/resc/edal/util/GISUtils.java @@ -28,7 +28,6 @@ package uk.ac.rdg.resc.edal.util; -import java.io.File; import java.lang.reflect.Field; import java.nio.file.FileSystems; import java.sql.Connection; @@ -1400,9 +1399,6 @@ public Object getObjectInstance(Object obj, Name name, Context nameCtx, } else { path = EpsgDatabasePath.DB_PATH; } - // Ensure path is suitable for a URI, especially on Windows machines - File fp = new File(path); - path = fp.toURI().toString(); /* * AUTO_SERVER=TRUE means that this DB will run in embedded mode on * the first JVM. However, if a second JVM tries to access it, it