1

I have a GeoPackage layer with point features containing some important attributes. When I try to export this layer into a shapefile format the point features are exported but all of the attributes are lost.

original field values of GeoPackage

How can I export the layer to shapefile format and retain the attributes?

I export to shapefile by selecting the point features I want to convert->right click->export ->save selected features as->choose esri shapefile format and selected attributes->export.

What I get is a shapefile layer with the selected features but all the field names of the shapefile change to numbers and their values appear as null

field values of exported shapefile

5
  • I select the point features I want to export from the gpkg layer. Right click on the layer->export ->save selected features as. I chose esri shapefile as format and also select the attribute fields that I would like to export.
    – Chris Kout
    Commented Jul 31 at 12:59
  • 1
    What do you mean by all of the attributes are lost ? do you get all row and all column but with empty attribute or you don't get any column or you don't get any row or ...
    – J.R
    Commented Jul 31 at 13:09
  • Can you share a sample file giving this problem?
    – Pieter
    Commented Jul 31 at 13:22
  • 3
    Your export procedure as described in comment (you should rather edit your question to add this) sound right and should give you the full data (minus the shapefile limitations regarding field name length, DateTime data type and Null value handling…) You need to give more information to determine what went wrong
    – J.R
    Commented Jul 31 at 13:29
  • 2
    None of the names on the shapefile are dBase-conformant (Unique 10 characters UPPERCASE -- "ID" is reserved for the fid). As a rule, shapefile should not be an output format from any database, since names are corrupted, types are changed, NULLs and datetime are lost, and text fields truncated at 254 bytes.
    – Vince
    Commented Jul 31 at 14:24

0

Your Answer

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