燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-06 ec3e7326246b5543089b14e53275e2aca8e39f96
src/main/java/com/yssh/service/impl/ExpPointServerImpl.java
@@ -3,43 +3,30 @@
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;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.geotools.geojson.geom.GeometryJSON;
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 Log logger = LogFactory.getLog(this.getClass());
   @Autowired
   @Resource
   private ExpPointMapper expPointMapper;
   @Autowired
   private StratumMapper stratumMapper;
   @Override
   public GeometryJSON selectList() throws IOException {
      String sourceCRS = "EPSG:4530";
@@ -69,8 +56,7 @@
      int numPoints = geo.getNumPoints();
      return geometryJson;
   }
   public List<ExpPoint> selectList2() {
      String sourceCRS = "EPSG:4530";
      String targetCRS = "EPSG:4490";