def __recordFmt(self):
        """Calculates the size of a .shp geometry record."""
        if not self.numRecords:
            self.__dbfHeader()
        fmt = ''.join(['%ds' % fieldinfo[2] for fieldinfo in self.fields])
        fmtSize = calcsize(fmt)
        return (fmt, fmtSize)
def __recordFmt ( self ) : if not self . numRecords : self . __dbfHeader ( ) fmt = '' . join ( [ '%ds' % fieldinfo [ 2 ] for fieldinfo in self . fields ] ) fmtSize = calcsize ( fmt ) return ( fmt , fmtSize )
Calculates the size of a .shp geometry record.