簡體   English   中英

Jupyterlab 中的 Geopandas (read_file) CRSError 消息

[英]Geopandas (read_file) CRSError Message in Jupyterlab

當我嘗試使用 geopandas 在 jupyterlab 中打開 shapefile 時收到錯誤消息。

我的代碼:

import geopandas as gpd
shapefile = gpd.read_file("urban.shp")

錯誤信息:

CRSError                                  Traceback (most recent call last)
<ipython-input-7-1d7660c631f4> in <module>
      1 import geopandas as gpd
----> 2 shapefile = gpd.read_file("urban.shp")

. . . . .
pyproj._crs._CRS 中的 pyproj/_crs.pyx。 初始化()

CRSError: Invalid projection: epsg:32633: (Internal Proj Error: proj_create: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name)

prj文件有以下信息:

PROJCS["WGS_1984_UTM_Zone_33N",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",15.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

我重新安裝了pyproj; 項目; geopanda,但麻煩仍然存在。 提前致謝。

您的 CRS 定義似乎沒問題,應該有與您的環境相關的問題。 您可以在任何桌面應用程序中成功打開 shapefile 嗎?

您使用的是什么版本的 Python 和 Geopandas?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM