I'm trying to read a .shp file. That .shp file contains polygon type. So I read all the records perfectly, after the reading the points, end of the file that have some 28 bytes are there what is meaning of that. same as I have 482 points in that shapefile. I calculate the content length by multiply the 8 bytes for each points so I Got 3856. but I read the value by reading of corresponding bytes, I got 3882. What is the meaning of that extra value?
The byte content of a shapefile is described in this whitepaper.
It will show you that a shapefile does not only contain point coordinates, but also a file header of 100 bytes, and record headers of 8 bytes each.
The geometry storage also has extra information, beside the actual coordinates. For polygons, that extra information contains its bounding box, the number of parts, and the number of vertices.
And finally, the file size also depends on whether coordinates have M and Z values.