| | |
| | | */ |
| | | public static void createWaylineFile(XMLTemplateModel xmlModel,String templeFilePath,String targetTempleFilePath,String waylineFilePath,String targetWaylineFilePath) { |
| | | |
| | | // xml2XmlDoc(xmlModel, "home\\drone\\server\\template\\template.xml", "home\\drone\\server\\template\\wpmz\\template.kml"); |
| | | // xml2XmlDoc(xmlModel, "home\\drone\\server\\template\\waylines.xml", "home\\drone\\server\\template\\wpmz\\waylines.wpml"); |
| | | // xml2XmlDoc(xmlModel, "home\\drone\\server\\template\\template.kml", "home\\drone\\server\\template\\wpmz\\template.kml"); |
| | | // xml2XmlDoc(xmlModel, "home\\drone\\server\\template\\waylines.wpml", "home\\drone\\server\\template\\wpmz\\waylines.wpml"); |
| | | |
| | | xml2XmlDoc(xmlModel, templeFilePath, targetTempleFilePath); |
| | | xml2XmlDoc(xmlModel, waylineFilePath, targetWaylineFilePath); |
| | | } |
| | | |
| | | public static void createWaylineFileByPolygon(XMLTemplateModel xmlModel,String templeFilePath,String targetTempleFilePath) { |
| | | xml2XmlDoc(xmlModel, templeFilePath, targetTempleFilePath); |
| | | } |
| | | |
| | | /** |
| | |
| | | out.close(); |
| | | } catch (Exception e) { |
| | | log.error("write xml failed:", e); |
| | | throw new RuntimeException(e); |
| | | } finally { |
| | | if (out != null) { |
| | | try { |