frizbog / gedcom4j

Java library for reading/writing genealogy files in GEDCOM format
http://gedcom4j.org
53 stars 36 forks source link

Add a way of tracking the first Individual parsed #180

Open frizbog opened 7 years ago

frizbog commented 7 years ago

The GEDCOM spec does not have any defined mechanism for specifying who the "primary" or "root" or "home" person is (the primary person of interest in the tree), although many genealogical software tools have a way of "pinning" an individual as the "home person" or the default person to go to when displaying the contents of the file.

Some tools use custom tags to indicate who this primary person is, but an alternative that's in common use is to anchor things to the first Individual listed in the file.

If the parser could track who that individual is, and then have that available somehow in the data model, this would enable tools using gedcom4j to pick this first person and start displaying tree data from there.