地图上绘制任意角度的椭圆_地图上的总椭圆

文章介绍了如何在地图上绘制连接办公室和海滩的椭圆路径,探讨了椭圆在地理和天文学中的应用,并分享了一种使用Python和shapely库实现的绘制方法,包括确定轴、绘制、移动和旋转椭圆等步骤。
摘要由CSDN通过智能技术生成

地图上绘制任意角度的椭圆

或者,如何选择下班后去海滩的最佳方式 (Or, how to choose the best way to walk to the beach after work)

It was a cool autumn evening when Hila Kloper and I were thinking of going to the beach after work. The beach is about 2.5Km away from the office.

这是一个凉爽的秋天晚上,希拉·克洛珀和我想下班后去海滩。 海滩距离办公室约2.5公里。

We were even considering strolling down the streets of Tel Aviv, willing to stretch our path to 3Km, and thinking to ourselves “mmm we wonder how far this stretch can take us?”

我们甚至正在考虑漫步在特拉维夫的街道上,愿意将我们的道路延伸到3Km,然后对自己进行思考:“嗯,我们想知道这条延伸能带我们走多远?”

Well, long story short, we didn’t go to the beach. Instead, we wrote a script that draws an ellipse around the office and the beach. The ellipse covers the city area we may go through if we ever decide to go to the beach after work.

好吧,长话短说,我们没有去海滩。 相反,我们编写了一个脚本,在办公室和海滩周围绘制了一个椭圆形。 如果我们决定下班后去海滩,那椭圆形可能覆盖我们可能经历的城市地区。

这是生命的椭圆 (It’s the Ellipse of Life)

Or - why should we care about ellipses?

或者-为什么我们要关心椭圆?

A circle is in some way the “natural” area around one point. An ellipse is the “natural” area around two points or a line. To name a few examples, bodies of mass move in elliptic orbits, ellipses represent the distortion caused by projecting a 3D map on 2D, and ellipses are also an accurate way to plot confidence of noisy GPS data (and confidence areas in 2D data in general).

在某种程度上,圆是围绕一个点的“自然”区域。 椭圆是围绕两个点或一条线的“自然”区域。 仅举几个例子, 质量块在椭圆轨道上移动 ,椭圆表示在2D上投影3D地图所引起变形 ,椭圆也是绘制嘈杂GPS数据 置信度 (以及通常在2D数据置信度区域)的准确方法)。

In our case, we wanted to draw an area around the line starting at our office and ending at the beach. The easiest solution we found for drawing ellipses involved shapely and pyplot. It still required some modifications due to our GPS and map constraints.

在我们的案例中&#x

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值