擅长:python、mysql、java
<p>{{1>你可以使用cd1}来操作这个模块{1},这是非常好的</p>
<pre><code>from shapely import geometry, wkb
test_geom = geometry.Point(0, 0)
test_wkb_hex = wkb.dumps(test_geom, hex=True)
print(test_wkb_hex) # prints: '010100000000000000000000000000000000000000'
my_geom = wkb.loads(test_wkb_hex, hex=True)
print(my_geom) # prints: POINT (0 0)
</code></pre>
<p>在您的例子中,只需对您的响应使用<code>wkb.loads(record_geom, hex=True)</code>方法。在</p>
<p>然后,您可以使用<code>shapely</code>的<code>geometry</code>模块提取顶点或执行任何其他数量的任务。在</p>
<p>例如,<code>my_geom.coords.xy</code>将返回坐标的<code>x</code>,<code>y</code>数组。在</p>