Passage Data

Check a file →

Why your shapefile column names are cut to 10 characters

Shapefile · dBASE III/IV

What you are seeing — your columns came back as beschermin, sitecode_v and individual, and the names you actually gave them are gone.

The short answer

The cap is real, and it is not in the shapefile specification, which hands the attribute table to dBASE. Two other facts produce the 10. The dBASE III/IV field descriptor holds 11 bytes for a name, and ESRI's software caps it at 10 (ArcGIS error 000142).

That matters if you write a reader. Treat the format's cap as 10 and you silently cut one character off any name that fills all 11 bytes. We read 11 bytes and stop at the first NUL.

The rest of the answer — 3 more points

For everyone else the consequence is simpler and worse: the original spelling is not recoverable from the file. The export destroyed it before you ever saw it. Nothing can undo that — not us, not a GIS, not the person who sent it, unless they still have what they exported from.

It is also why a column should be confirmed from its values, not its header. scientific could be a scientific name or a scientific method; the values settle it, the header cannot.

If you are choosing a format now, this is the strongest single argument for GeoPackage: it has no cap at all.

What you can still do

  1. Ask whoever exported it for the source layer, if it still exists. That is the only place the full names survive.
  2. Drop the file here. The report names every column at the cap, and every pair of names the cap made identical.
  3. Where two names collided, the export usually renamed one — so a column may not hold what its stub suggests. Check the values before trusting the header.
  4. Re-export as GeoPackage if you control the source, and the problem does not recur.
See which names were cut

Drop the zipped bundle or the bare .dbf and we will name every column that hit the cap. Free during the testing period. No account needed. Without one, what we read trains our reader (names removed); signed in, nothing is kept.

Check the file you have →

Related