Skip to main content
3 events
when toggle format what by license comment
May 23, 2017 at 12:39 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Jul 3, 2013 at 17:35 comment added whuber Rows in a dBase file can be counted in two ways: (1) a record in the header stipulates how many rows it contains and (2) subtract the header length from the total file length (in bytes) and divide by the record length (equal to one plus the sum of lengths of the fields). It's usually a good idea to do both in case the file is physically truncated. Regardless, even when the counts match, the .shp and .dbf files are almost useless without the .shx file, which indexes into the .shp file. So a quick check of the count of .shx records might be better than reading the entire .shp file.
Jul 1, 2013 at 18:02 history answered Kirk Kuykendall CC BY-SA 3.0