1 需求
已知圆的坐标,半径长度,单位是米,得到一个圆
2 解决方案
2.1 Java 语言
<dependency><groupId>com.esri.geometry</groupId><artifactId>esri-geometry-api</artifactId><version>1.1</version></dependency>
public Envelope2D envelope(Point c, double radius) {Envelope2D env = new Envelope2D();double ymax = Geodesic.WGS84.Direct(c.getY(), c.getX(), 0, radius).lat2;double ymin = Geodesic.WGS84.Direct(c.getY(), c.getX(), -180, radius).lat2;double xmax = Geodesic.WGS84.Direct(c.getY(), c.getX(), 90, radius).lon2;double xmin = Geodesic.WGS84.Direct(c.getY(), c.getX(), -90, radius).lon2;env.setCoords(xmin, ymin, xmax, ymax);return env;}