diff --git a/mapshaper-gui.js b/mapshaper-gui.js index e5ce476b..7a1ad103 100644 --- a/mapshaper-gui.js +++ b/mapshaper-gui.js @@ -2534,7 +2534,7 @@ // prevent GUI message popup on error internal.setLoggingForCLI(); try { - if (!dataset || internal.datasetIsEmpty(dataset)) { + if (!dataset || internal.datasetIsEmpty(dataset) && !dataset.info?.crs) { crs = internal.parseCrsString('wgs84'); } else { crs = internal.getDatasetCRS(dataset); diff --git a/mapshaper.js b/mapshaper.js index 47af710c..a193f7fc 100644 --- a/mapshaper.js +++ b/mapshaper.js @@ -45616,7 +45616,7 @@ ${svg} }); } - var version = "0.6.92"; + var version = "0.6.93"; // Parse command line args into commands and run them // Function takes an optional Node-style callback. A Promise is returned if no callback is given.