open shapefile raised error: Assigning CRS to a GeoDataFrame without a geometry column is not supported... #2991
Closed
shuai-zhou
started this conversation in
General
Replies: 1 comment 3 replies
-
That is a weird one. Can you
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a new Python env (python=3.9) on a new Windows 10 machine, and installed geopandas 0.12.2
When trying to open a shapefile using
gdf = gpd.read_file('file_name.shp')
, I got an error,ValueError: Assigning CRS to a GeoDataFrame without a geometry column is not supported. Supply geometry using the 'geometry=' keyword argument, or by providing a DataFrame with column name 'geometry'
. Why is this happening and how to fix it? Thank you.Beta Was this translation helpful? Give feedback.
All reactions