|
@@ -1,5 +1,6 @@
|
|
package com.onemap.analyse.controller.analyse;
|
|
package com.onemap.analyse.controller.analyse;
|
|
|
|
|
|
|
|
+import com.onemap.analyse.domain.AnalyseUtilsVo;
|
|
import com.onemap.analyse.service.AnalyseUtilsDBService;
|
|
import com.onemap.analyse.service.AnalyseUtilsDBService;
|
|
import com.onemap.common.core.web.controller.BaseController;
|
|
import com.onemap.common.core.web.controller.BaseController;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
@@ -39,6 +40,30 @@ public class AnalyseUtilsDBController extends BaseController {
|
|
return RequestResult.success(analyseUtilsDBService.intersectsTableWkt(inputTable, inputSRID, inputIds, intersectsWkt, intersectsWktSRID));
|
|
return RequestResult.success(analyseUtilsDBService.intersectsTableWkt(inputTable, inputSRID, inputIds, intersectsWkt, intersectsWktSRID));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * table中与wkt数据是否有交集
|
|
|
|
+ *
|
|
|
|
+ * @param inputTable TABLE名称(vater空间中表)
|
|
|
|
+ * @param inputSRID table
|
|
|
|
+ * @param inputIds 查询数据集ID
|
|
|
|
+ * @param intersectsWkt wkt
|
|
|
|
+ * @param intersectsWktSRID wkt对应的坐标
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/intersects/table_wkt_v1")
|
|
|
|
+ @Slave
|
|
|
|
+ public RequestResult intersectsTableWktV1(@RequestBody AnalyseUtilsVo analyseUtilsVo) {
|
|
|
|
+ if (analyseUtilsVo == null) {
|
|
|
|
+ RequestResult.error("analyseUtilsVo is null");
|
|
|
|
+ }
|
|
|
|
+ return RequestResult.success(analyseUtilsDBService.intersectsTableWkt(
|
|
|
|
+ analyseUtilsVo.getInputTable(),
|
|
|
|
+ analyseUtilsVo.getInputSRID(),
|
|
|
|
+ analyseUtilsVo.getInputIds(),
|
|
|
|
+ analyseUtilsVo.getAnalyseWkt(),
|
|
|
|
+ analyseUtilsVo.getAnalyseWktSRID()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* table中与wkt数据取交集
|
|
* table中与wkt数据取交集
|
|
@@ -62,6 +87,28 @@ public class AnalyseUtilsDBController extends BaseController {
|
|
return RequestResult.success(analyseUtilsDBService.intersectionTableWkt(inputTable, inputSRID, inputIds, intersectionWkt, intersectionWktSRID, outputColumn));
|
|
return RequestResult.success(analyseUtilsDBService.intersectionTableWkt(inputTable, inputSRID, inputIds, intersectionWkt, intersectionWktSRID, outputColumn));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * table中与wkt数据取交集
|
|
|
|
+ *
|
|
|
|
+ * @param inputTable TABLE名称(vater空间中表)
|
|
|
|
+ * @param inputSRID table
|
|
|
|
+ * @param inputIds 查询数据集ID
|
|
|
|
+ * @param intersectionWkt wkt
|
|
|
|
+ * @param intersectionWktSRID wkt对应的坐标
|
|
|
|
+ * @param outputColumn 返回TABLE表中的字段,先已返回,ID,GEOM(交集的),geom_area (交集的)
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/intersection/table_wkt_v1")
|
|
|
|
+ @Slave
|
|
|
|
+ public RequestResult intersectionTableWktV1(@RequestBody AnalyseUtilsVo analyseUtilsVo) {
|
|
|
|
+ return RequestResult.success(analyseUtilsDBService.intersectionTableWkt(analyseUtilsVo.getInputTable(),
|
|
|
|
+ analyseUtilsVo.getInputSRID(),
|
|
|
|
+ analyseUtilsVo.getInputIds(),
|
|
|
|
+ analyseUtilsVo.getAnalyseWkt(),
|
|
|
|
+ analyseUtilsVo.getAnalyseWktSRID(),
|
|
|
|
+ analyseUtilsVo.getOutputColumn()));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 计算wkt包含table中的数据,返回table id
|
|
* 计算wkt包含table中的数据,返回table id
|