Browse Source

删除无关代码

zhouyuexiang 1 year ago
parent
commit
d0e645a27c

+ 0 - 10
tile-service/src/main/java/cn/com/taiji/tile/service/ITileService.java

@@ -13,16 +13,6 @@ public interface ITileService {
 
 
     byte[] tileData(GeoRequestParam requestParam, List<LayerGroupDsView> layerGroupDsViewList, Map<String,List<LayerStyleView>> dataMaps);
-
-    /**
-     * 查询要素信息
-     * @param bbox
-     * @param type
-     * @param layerName
-     * @return
-     */
-    List<?> queryElements(String bbox, Integer type, String layerName);
-
     FeatureInfo getFeatureInfo(GeoRequestParam geoRequestParam, List<LayerGroupDsView> layerGroupDsViewList, Map<String, List<LayerStyleView>> dataMaps);
 
 }

+ 0 - 6
tile-service/src/main/java/cn/com/taiji/tile/service/impl/TileServiceImpl.java

@@ -176,12 +176,6 @@ public class TileServiceImpl implements ITileService {
         return featureInfo;
     }
 
-
-
-    @Override
-    public List<?> queryElements(String bbox, Integer type, String layerName) {
-        return null;
-    }
     public static double[] parseBbox(String bboxString) {
         String[] bboxValuesStr = bboxString.split(",");
         if (bboxValuesStr.length != 4) {

+ 1 - 19
tile-web/src/main/java/cn/com/taiji/web/controller/TileWebController.java

@@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.PostConstruct;
+import javax.annotation.Resource;
 import javax.servlet.ServletOutputStream;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -44,25 +45,6 @@ public class TileWebController {
     @Autowired
     private IGeoDataSourceService geoDataSourceService;
 
-    @PostConstruct
-    public void initData(){
-        try {
-            List<LayerGroupDsView> layerGroupDsViewList = geoDataSourceService.layerCodeGeoDataSource("socialManagementElement");
-
-
-        } catch (Exception e) {
-            throw new RuntimeException(e);
-        }
-    }
-
-
-    @ApiOperation("面向瓦片的点击查询")
-    @GetMapping("/queryElements")
-    public Result queryElements(String bbox,Integer type,String layerName){
-        List<?> list=tileService.queryElements(bbox,type,layerName);
-
-        return Result.of(list, 0, "操作成功");
-    }
 
 
     @RequestMapping(value = {"/queryTile"}, method = {RequestMethod.GET, RequestMethod.POST})