加载SHP使用CATTOPY函数时
我会遇到一个错误:
OSError: exception: access violation writing 0x0000000000000000
尝试使用sr.reader()函数加载SHP时。
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import matplotlib.colors as cor
import numpy as np
import cartopy.io.shapereader as sr
crs = ccrs.PlateCarree()
fig = plt.figure(figsize = (10, 10), dpi = 600)
ax1 = plt.subplot(1, 1, 1, projection = crs)
geom = sr.Reader(r"D:\CS\Krigin\shp\jiangsu.shp").geometries()
ax1.add_geometries(geom, crs)
然后我会遇到一个错误:
OSError: exception: access violation writing 0x0000000000000000
任何帮助都将受到赞赏!
Im getting an error:
OSError: exception: access violation writing 0x0000000000000000
While trying to load an shp with sr.Reader() function.
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import matplotlib.colors as cor
import numpy as np
import cartopy.io.shapereader as sr
crs = ccrs.PlateCarree()
fig = plt.figure(figsize = (10, 10), dpi = 600)
ax1 = plt.subplot(1, 1, 1, projection = crs)
geom = sr.Reader(r"D:\CS\Krigin\shp\jiangsu.shp").geometries()
ax1.add_geometries(geom, crs)
then I get an error:
OSError: exception: access violation writing 0x0000000000000000
Any help is appreciated !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论