4

I am looking to set a coordinate system for every GeoDataFrame in a list of them. So I need this:

gdfs[0].crs = "EPSG:6668"
gdfs[1].crs = "EPSG:6668"

And so on but iteratively. I tried:

([gdfs.crs = "EPSG:6668"] for file in gdfs)

And:

for file in gdfs:
    gdfs.crs = "EPSG:6668"

But not working, any solution?

1 Answer 1

4
for gdf in gdfs:
    gdf.crs = "EPSG:6668"

Or

for i in range(len(gdfs)):
   gdfs[i].crs = "EPSG:6668"
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.