| | |
| | | * 瓦片路径是否存在 |
| | | */ |
| | | private boolean isTilePathExist(PublishEntity pub) { |
| | | String tilePath = pathHelper.getConfig().getTilePath().replace("2d\\tiles", "") + pub.getPath(); |
| | | String tilePath = pathHelper.getConfig().getTilePath() + pub.getPath(); |
| | | |
| | | File f = new File(tilePath); |
| | | if (!f.exists() || !f.isDirectory()) { |
| | |
| | | */ |
| | | private List<File> findTiles(DownloadTileEntity dt, PublishEntity pub) { |
| | | List<File> list = new ArrayList<>(); |
| | | |
| | | File view = new File(pub.getPath() + File.separator + "view.htm"); |
| | | if (view.exists() && !view.isDirectory()) { |
| | | list.add(view); |
| | | } |
| | | |
| | | for (int i = 0; i < StaticData.I23; i++) { |
| | | List<File> files = findTilesByZoom(dt, pub, i); |
| | | if (files.size() > 0) { |