Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: During execution of task VectorToRaster: None is not a valid CRS #11

Open
wtrainor opened this issue Nov 12, 2020 · 3 comments

Comments

@wtrainor
Copy link

Hello,

For the water_level_extraction.ipynb, I get this error when executing the workflow. I check my geopandas version and it seems up to date.

Any ideas?
thank you!

@batic
Copy link
Collaborator

batic commented Nov 12, 2020

From the information you have provided I'd say your vector data has no CRS set up. Could you try something along the lines:

print(geo_data_frame.crs)

to see if the (geo)pandas DF has valid CRS? If I am (completely) off, please provide more info (where this happens etc).

@wtrainor
Copy link
Author

wtrainor commented Nov 12, 2020

Thanks for the quick reply. I tried this
gpd.crs
And got the same error. I actually switched over to the notebook included in the eo-learn github repository and ran
eo-learn/examples/water-monitor/WaterMonitorWorkflow.ipynb

which seems to do the same thing, and had no errors.

Worskhop version:
gpd.GeoDataFrame(crs={'init': 'epsg:4326'}, geometry=[nominal_geometry])
eo-learn version:
gpd.GeoDataFrame(crs=CRS.WGS84.pyproj_crs(), geometry=[dam_nominal])

Also, looks like eo-learn uses some updated data inputs tasks (SentinelHubInputTask) , not sure if that makes a difference...?

@batic
Copy link
Collaborator

batic commented Nov 12, 2020

This workshop unfortunately has not been updated (yet), and there have been quite some changes in the sentinelhub and eolearn packages, some of which (the one you found included) because of changes in geopandas library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants