张洋洋
2025-02-08 3c7edc1846cab6a1bdc02512a5f59a4031e2e07e
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转sem 管点 完成
//        SEM sem = SEM.fromCityJSON("D:\\out\\point\\1737602481122\\管点.json");
//        sem.writeToFile("D:\\out\\point\\1737602481122\\point.sem");
        //cityjson转sem 管线
//        SEM sem = SEM.fromCityJSON("D:\\out\\line\\1737615372545\\管线.json");
//        sem.writeToFile("D:\\out\\line\\1737615372545\\管线.sem");
        //cityjson转sem 地形 完成
//        SEM sem = SEM.fromCityJSON("D:\\out\\terrain\\1737603153671\\terrain.json");
//        sem.writeToFile("D:\\out\\terrain\\1737603153671\\terrain.sem");
        //cityjson转sem 降雨(成功)
        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转sem
@@ -25,7 +14,7 @@
    }
    public static void semToCityJson() throws Exception {
        //sem转cityjson
        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");
    }
}