擅长:python、mysql、java
<p>这并不能直接回答您的问题,但您可能希望签出<strong>awesome</strong>python模块<code>shapely</code>。在</p>
<p>您可以使用模块创建几何对象,如<code>LineStrings</code>,<code>Points</code>。在</p>
<p>一个简单的电话:</p>
<blockquote>
<p>object.project(other[, normalized=False])</p>
<p>Returns the distance along this geometric object to a point nearest
the other object.</p>
</blockquote>
<p>会给你答案的。在</p>
<p>以下是它的文档:
<a href="http://toblerity.org/shapely/manual.html" rel="nofollow">Shapely Documentation</a></p>