| | |
| | | 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"; |
| | |
| | | int numPoints = geo.getNumPoints(); |
| | | return geometryJson; |
| | | } |
| | | |
| | | |
| | | |
| | | public List<ExpPoint> selectList2() { |
| | | String sourceCRS = "EPSG:4530"; |
| | | String targetCRS = "EPSG:4490"; |