| | |
| | | import com.lf.server.service.data.PublishService; |
| | | import net.lingala.zip4j.ZipFile; |
| | | import net.lingala.zip4j.model.ZipParameters; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | |
| | | @Resource |
| | | DownloadService downloadService; |
| | | |
| | | private final static Log log = LogFactory.getLog(InquiryService.class); |
| | | |
| | | /** |
| | | * 读取Shp第一条记录的WKT |
| | |
| | | try { |
| | | params.setFileNameInZip(f.getPath().replace(basePath, "")); |
| | | zip.addStream(new FileInputStream(f), params); |
| | | } catch (Exception e) { |
| | | // |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |
| | | } |
| | | } |