| | |
| | | package com.lf.server.service.show; |
| | | |
| | | import com.lf.server.entity.ctrl.DownloadTileEntity; |
| | | import com.lf.server.entity.ctrl.ShpRecordEntity; |
| | | import com.lf.server.entity.data.MetaEntity; |
| | | import com.lf.server.entity.data.MetaFileEntity; |
| | | import com.lf.server.entity.data.PublishEntity; |
| | | import com.lf.server.entity.sys.UserEntity; |
| | | import com.lf.server.helper.FileHelper; |
| | | import com.lf.server.helper.ShpHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | |
| | | public class InquiryService { |
| | | /** |
| | | * 读取Shp第一条记录的WKT |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | public ShpRecordEntity readShpFirstRecord(List<MetaFileEntity> list) { |
| | | String fileName = null; |
| | | for (MetaFileEntity mf : list) { |
| | | if (mf.getName().toLowerCase().indexOf(".shp") > -1) { |
| | | if (mf.getName().toLowerCase().contains(".shp")) { |
| | | fileName = mf.getPath(); |
| | | break; |
| | | } |
| | |
| | | |
| | | return sr; |
| | | } |
| | | |
| | | /** |
| | | * 下载瓦片 |
| | | */ |
| | | public String downloadTiles(DownloadTileEntity dt, PublishEntity pub, UserEntity ue) { |
| | | |
| | | |
| | | return ""; |
| | | } |
| | | } |