0
votes

Good afternoon,

I have a question: how to set CRS to shapefile in python?

Using gdal.Polygonize(), I converted raster to vector (shapefile) and then I put it in QGIS, shapefile is without CRS.

how to set CRS to shapefile in python?

1

1 Answers

0
votes

Use GeoDataFrame.to_crs

gpf.to_crs('EPSG:4326')