燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-06-05 aaa42c070d59c46ff0ed42a1d2748df6dd6a06d7
src/main/java/com/yssh/service/impl/ExpPointServerImpl.java
@@ -7,6 +7,8 @@
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;
@@ -30,7 +32,7 @@
@Service
public class ExpPointServerImpl implements IExpPointServer {
   protected final Logger logger = LoggerFactory.getLogger(this.getClass());
   protected final Log logger = LogFactory.getLog(this.getClass());
   @Autowired
   private ExpPointMapper expPointMapper;
@@ -93,11 +95,12 @@
      
      int numPoints = geo.getNumPoints();
      
      List<Coordinate> cs = new ArrayList<>(Arrays.asList(geo.getCoordinates()));
      /*List<Coordinate> cs = new ArrayList<>(Arrays.asList(geo.getCoordinates()));
      cs.forEach(c -> {
         System.out.println(c.getY() + " " + c.getX() + " " + c.getZ());
      });
      });*/
      System.out.println(numPoints);
      /*String text = union.toText();
      System.out.println(text);*/