网页版

This commit is contained in:
ZZX9599
2025-09-30 10:39:55 +08:00
parent fed3188f57
commit 6b3509f1d9
6 changed files with 57 additions and 41 deletions

View File

@ -29,7 +29,7 @@ public class GdalController {
public void importDataStreamGzip(@Parameter(description = "矢量文件路径", required = true) @RequestParam("path") String path, HttpServletResponse response) throws IOException {
// 解析矢量文件、得到JSON数据
String jsonData = GdalUtil.readVectorToJson(path);
String jsonData = GdalUtil.readVectorToGeoJson(path);
// 设置响应头
String filename = URLEncoder.encode("data.gz", StandardCharsets.UTF_8);

View File

@ -237,6 +237,7 @@ public class IconLibraryController {
params.add(fileSuffix);
params.add(file.getBytes());
params.add(LocalDateTime.now().toString());
System.out.println(insertSql);
SQLiteUtil.executeUpdate(iconPath, insertSql, params);
}