rain
2024-04-08 c1915a7e947710572826a746e975e8d09516a0e7
src/main/java/com/dji/sample/patches/utils/FormatConversionUtil.java
@@ -2,15 +2,13 @@
import java.util.List;
import static org.locationtech.jts.io.WKTConstants.POLYGON;
public class FormatConversionUtil {
    public static String[] formatConversion(List<String> s) {
        String str = s.toString().trim();
        String ses = str.substring(1, str.length() - 2);
        String see = ses.replaceAll("\\[\\[\\[\\[", "((")
                        .replaceAll("].\\[", " ")
                        .replaceAll("]]]", "))");
                .replaceAll("].\\[", " ")
                .replaceAll("]]]", "))");
        String[] arr1 = see.split("],");
        return arr1;
    }