From 3c7edc1846cab6a1bdc02512a5f59a4031e2e07e Mon Sep 17 00:00:00 2001 From: 张洋洋 <10611411+yang-yang-z@user.noreply.gitee.com> Date: 星期六, 08 二月 2025 14:24:34 +0800 Subject: [PATCH] [add]cityjson转sem --- src/main/java/com/se/simu/utils/SemUtils.java | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/se/simu/utils/SemUtils.java b/src/main/java/com/se/simu/utils/SemUtils.java index b16bf0a..f0fe654 100644 --- a/src/main/java/com/se/simu/utils/SemUtils.java +++ b/src/main/java/com/se/simu/utils/SemUtils.java @@ -5,18 +5,7 @@ public class SemUtils { public static void main(String[] args) throws Exception { - //cityjson杞瑂em 绠$偣 瀹屾垚 -// SEM sem = SEM.fromCityJSON("D:\\out\\point\\1737602481122\\绠$偣.json"); -// sem.writeToFile("D:\\out\\point\\1737602481122\\point.sem"); - //cityjson杞瑂em 绠$嚎 -// SEM sem = SEM.fromCityJSON("D:\\out\\line\\1737615372545\\绠$嚎.json"); -// sem.writeToFile("D:\\out\\line\\1737615372545\\绠$嚎.sem"); - //cityjson杞瑂em 鍦板舰 瀹屾垚 -// SEM sem = SEM.fromCityJSON("D:\\out\\terrain\\1737603153671\\terrain.json"); -// sem.writeToFile("D:\\out\\terrain\\1737603153671\\terrain.sem"); - //cityjson杞瑂em 闄嶉洦(鎴愬姛) - SEM sem = SEM.fromCityJSON("D:\\out\\station_rain_1736399134241\\闄嶉洦閲�.json"); - sem.writeToFile("D:\\out\\station_rain_1736399134241\\闄嶉洦閲�.sem"); + semToCityJson(); } public static void cityJsonToSem(String jsonUrl,String semUrl) throws Exception { //cityjson杞瑂em @@ -25,7 +14,7 @@ } public static void semToCityJson() throws Exception { //sem杞琧ityjson - SEM sem2 = new SEM("C:\\XXX\\Grid.sem"); - sem2.writeToCityJSON("C:\\XXX\\Gridout.json"); + SEM sem2 = new SEM("D:\\鍩庡競鍐呮稘\\sem\\tongzhou\\tongzhou\\grid.sem"); + sem2.writeToCityJSON("D:\\鍩庡競鍐呮稘\\sem\\tongzhou\\tongzhou\\grid\\grid.json"); } } -- Gitblit v1.9.3