擅长:python、mysql、java
<p>我在绘制多段线时遇到了类似的问题。它需要32位整数。在</p>
<p>我把要点投给uint32:</p>
<pre><code>use_points = np.uint32(original_points)
</code></pre>
<p>问题是它需要32位的有符号整数,而不是无符号整数。这是代码中的一个微妙之处,所以很难找到,但后来这个方法奏效了:</p>
^{pr2}$
<p>只是使用<code>np.int32</code>而不是<code>np.uint32</code></p>