python-3.x - ProjError:从 CRS 创建 Transformer 时出错。:
问题描述
我遇到了 Geopandas 和 PyProj 的问题。
我正在从 GeoPandas 加载预制的 shp 文件
borough = gpd.read_file(gpd.datasets.get_path('nybb'))
尝试使用以下代码进行 crs 转换时:
borough = borough.to_crs({'init': 'epsg:4326'})
我收到错误:
same_source_target_crs = 1 WHERE ((source_crs_auth_name = ? AND source_crs_code = ? AND target_crs_auth_name = ? AND target_crs_code = ?) OR (source_crs_auth_name = ? AND source_crs_code = ? AND target_crs_auth_name = ? AND target_crs_code = ?)) AND cov.deprecated = 0 AND cov。 auth_name = ? ORDER BY pseudo_area_from_swne(south_lat, west_lon, north_lat, east_lon) DESC,(CASE WHEN 精度为 NULL THEN 1 ELSE 0 END),精度:没有这样的列:ss.same_source_target_crs)
我真的完全不知道在这里做什么。
PS:这是我的第一篇 stackoverflow 帖子,所以我为这篇文章的糟糕布局提前道歉。
解决方案
推荐阅读
- python - 如何让 Spyder 在打开现有项目时自动更改 python 解释器/环境?
- erlang - 在 Erlang 中应该如何解释 undef 错误?
- excel - 使用 VBA 获取主文件夹路径的最可靠方法是什么
- azure - 使用代码更改 edgeAgent 和 edgeHub 的“createOptions”
- javascript - 如何格式化 moment.js?
- vb.net - Page_Load 持续运行不止一次 VB.net
- vim - 如何解决 Atom 和 Vim 之间的制表符/空格问题
- node.js - 如何测量包括主机操作系统在内的 docker 内存使用情况?
- mule - 在 mule 3 中读取 json 有效负载数据
- angular - Angular 10 错误“找不到模块'@angular/core'或其相应的类型声明”