I have two layer, shapefile and raster. I need to re project shape-file into EPSG:32633 - WGS 84 / UTM zone 33N . I did it using this python code:
import geopandas as gpd
# Path to the original shapefile
shapefile = r'2019_ID69.shp'
gdf = gpd.read_file(shapefile)
print("Original CRS: ", gdf.crs)
if gdf.crs != 'EPSG:32633':
gdf = gdf.to_crs('EPSG:32633')
print("Reprojected CRS: ", gdf.crs)
else:
print("No reprojection needed.")
# Define the output path for the new shapefile
output_shapefile_path = r'reprojected_2019.shp'
# Save the GeoDataFrame as a shapefile
gdf.to_file(output_shapefile_path)
I also reproject it through data management in QGIS . However in both cases my shapefile is not in the correct place (based on base map) and not aligned with my raster layer (EPSG:32633 - WGS 84 / UTM zone 33N)