0

Does anyone know why the 'alias' not saved when I export a layer to a shp file? So, I made alias in the file when I exported. After I opened exported shp file and properties->attribute form/fields are empty.

enter image description here

Since the names of columns are long, having the alias is critical.

2
  • 1
    Shapefile format does not support alias names. QGIS saves the alias names into the project file. Not even ESRI can store alias names into shapefiles community.esri.com/t5/data-management-questions/….
    – user30184
    Commented Mar 28, 2023 at 14:42
  • try using a modern standard format like geopackage.
    – Ian Turton
    Commented Mar 28, 2023 at 15:36

1 Answer 1

2

Shapefile can't store alias so you can define them in your project but when exporting they get lost.

One way to keep alias is to save a .qml (QGIS layer style file) along the shp. if the .qml and the other shp files are in the same folder and share the same name, the .qml will be automatically loaded and you will get the alias name set. (Of course as .qml is a QGIS specific format this only work with QGIS, if you share the shapefile with people using some other software the .qml won't work)

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.