rain
2024-03-27 560a36b86d97fbb2dc7cc98966944d21ec299ca0
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;
    }