燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-06-16 aa86cb57b09c5300db3c33d75d91d8b51a4b636f
src/main/java/com/yssh/service/impl/ExpPointServerImpl.java
@@ -3,7 +3,6 @@
import java.io.IOException;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
@@ -11,33 +10,23 @@
import org.locationtech.jts.geom.Coordinate;
import org.locationtech.jts.geom.Geometry;
import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.MultiPoint;
import org.locationtech.jts.triangulate.ConformingDelaunayTriangulationBuilder;
import org.locationtech.jts.triangulate.DelaunayTriangulationBuilder;
import org.locationtech.jts.triangulate.VoronoiDiagramBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yssh.dao.ExpPointMapper;
import com.yssh.dao.StratumMapper;
import com.yssh.entity.ExpPoint;
import com.yssh.entity.Stratum;
import com.yssh.service.IExpPointServer;
import com.yssh.utils.GisUtil;
import javax.annotation.Resource;
@Service
public class ExpPointServerImpl implements IExpPointServer {
   protected final Logger logger = LoggerFactory.getLogger(this.getClass());
   @Autowired
   @Resource
   private ExpPointMapper expPointMapper;
   @Autowired
   private StratumMapper stratumMapper;
   @Override
   public GeometryJSON selectList() throws IOException {
      String sourceCRS = "EPSG:4530";
@@ -67,8 +56,7 @@
      int numPoints = geo.getNumPoints();
      return geometryJson;
   }
   public List<ExpPoint> selectList2() {
      String sourceCRS = "EPSG:4530";
      String targetCRS = "EPSG:4490";