
I believe there are three definitions and each can be consider as an approach to the meaning. Firstly there is community with reference to place where people have things in common and this shared understanding is based on locality.
Secondly there are community of interest where people share common characteristics other than place for example religous belief "the catholic comunity" or sexual oreientation "the gay community" or work related community of practice. Thirdly there is a sense of attachment to a place or group or even an idea that suggests there is a "spirit of the community or community spirit"