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; }