简体   繁体   English

Jupyterlab 中的 Geopandas (read_file) CRSError 消息

[英]Geopandas (read_file) CRSError Message in Jupyterlab

I receive an error message when I try to open a shapefile in jupyterlab using geopandas.当我尝试使用 geopandas 在 jupyterlab 中打开 shapefile 时收到错误消息。

My code:我的代码:

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

Error message:错误信息:

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.pyx in pyproj._crs._CRS. pyproj._crs._CRS 中的 pyproj/_crs.pyx。 init ()初始化()

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)

The prj file has the following information: 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]]

I reinstalled the pyproj;我重新安装了pyproj; proj;项目; geopanda, but the trouble stills. geopanda,但麻烦仍然存在。 Thanks in advance.提前致谢。

Your CRS definition seems OK, there should be a problem related to your environment.您的 CRS 定义似乎没问题,应该有与您的环境相关的问题。 Can you succesfully open shapefile in any desktop apps?您可以在任何桌面应用程序中成功打开 shapefile 吗?

What versions of Python and Geopandas you are using?您使用的是什么版本的 Python 和 Geopandas?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python parser read_file()AttributeError:“ NoneType”对象没有属性“ infile” - python parser read_file() AttributeError: 'NoneType' object has no attribute 'infile' GeoPandas .to_file给出错误的列? - GeoPandas .to_file gives wrong column? Python-读取文件,在段落中查找隐藏的消息 - Python - read file, find hidden message in a passage 我可以显示在 JupyterLab 上的另一个文件中创建的图吗? - Can I show a plot created in another file on JupyterLab? 如何并行化 geopandas 的“to_file”函数 - How can one parallelize geopandas "to_file" function 从不同目录导入文件后,Geopandas 不工作 - Geopandas not working after importing a file from a different directory 如何使用 Python 和 Geopandas 从 Geojson 文件中查找多边形中的点 - How To Find a Point In Polygon from a Geojson file Using Python And Geopandas AttributeError:在邮政编码 shp 文件中绘制事件的 Geopandas 中的未知属性列 - AttributeError: Unknown property column in Geopandas plotting of events in zipcode shp file 具有 .dbf、.prj、.shp 和 .shx 文件时如何在 geopandas 中读取 shapefile? - How to read shapefile in geopandas when having .dbf, .prj, .shp and .shx files? 如何在不使用 geopandas 的情况下从 geojason 文件创建数据框? - How do I create a dataframe from a geojason file without using geopandas?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM