wuww
2025-04-25 b50aa418312034cfebf121f416e197d68aa5d0de
src/test/java/com/se/nsl/AppTest.java
@@ -42,6 +42,7 @@
        //procDepthFiles();
        System.out.println("> test ----------------------");
        readZarr();
        //collectPngToList();
    }
    private void procDepthFiles() {
@@ -77,7 +78,7 @@
    public void collectPngToList() {
        System.out.println("------------------------------------------- start");
        int size = 1024;
        String outputPath = "D:\\other\\simu\\out\\20250412\\waters";
        String outputPath = "D:\\other\\simu\\out\\chicago96\\waters"; // ""D:\\other\\simu\\out\\20250412\\waters";
        List<String> list = new ArrayList<>();
        for (File file : new File(outputPath).listFiles()) {
            if (!file.exists() || file.isFile()) continue;
@@ -116,7 +117,7 @@
                Feature f = layer.GetFeature(j);
                Geometry g = f.GetGeometryRef();
                if (null != g) { //  && (g.GetGeometryType() == ogr.wkbPolygon || g.GetGeometryType() == ogr.wkbMultiPolygon)
                    list.add(new Region(f.GetFieldAsString(""), (short) 3, g.ExportToWkt()));
                    list.add(new Region(f.GetFieldAsString(""),  3, g.ExportToWkt()));
                }
            }
        }
@@ -162,7 +163,7 @@
            System.out.println("Successfully opened...");
            System.out.println("Driver: " + ds.GetDriver().getShortName() + "/" + ds.GetDriver().getLongName());
            System.out.println("Size: " + ds.getRasterXSize() + "x" + ds.getRasterYSize() + "x" + ds.getRasterCount());
            System.out.println("Size: " + ds.getRasterXSize() + " - " + ds.getRasterYSize() + " - " + ds.getRasterCount());
        } finally {
            if (null != ds) ds.delete();
        }