标题基本概括了所有内容。我正在寻找一种生成geoJSON多边形的便捷方法,该多边形定义类似于d3-geo的d3.geoCircle()();椭圆。我想将此GeoJSON椭圆与d3-geo一起使用。为了阐明示例,Cesium具有此功能和简单的功能,可让您创建如下所示的椭圆:
var ellipse = new Cesium.EllipseGeometry({
center : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
semiMajorAxis : 500000.0,
semiMinorAxis : 300000.0,
rotation : Cesium.Math.toRadians(60.0)
});
Run Code Online (Sandbox Code Playgroud)
如果该函数返回了GeoJSON,则会被设置。生成定义椭圆的GeoJSON多边形的最佳方法是什么?