Code Monkey home page Code Monkey logo

familytreeproject.gedcom's People

Contributors

cnurse avatar michaelosthege avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

familytreeproject.gedcom's Issues

FAMC record losing a zero 305 becomes 35

The FAMC records seem to exclude zero, so a record like this:
1 FAMC @305@
is referred to as @35@ by FamilyTreeProject.

I'm writing out the FAMC id for every individual:

public void ProcessGedcom(string gedComFilePath)
		{
			var gdoc = new FamilyTreeProject.GEDCOM.GEDCOMDocument();
			gdoc.Load(FamilyTreeProject.GEDCOM.IO.GEDCOMReader.Create(new System.IO.StreamReader(gedComFilePath,true)));

			foreach (FamilyTreeProject.GEDCOM.Records.GEDCOMIndividualRecord ind in gdoc.IndividualRecords)
			{
				Console.WriteLine(ind.Name);
				foreach (var item in (ind.FamilyLinks.FindAll(fl => fl.Tag == "FAMC")))
				{
					Console.WriteLine(item.XRefId);
				} 
				
			}
			Console.ReadKey();
		}

The result (35 is written out instead of 305) can be seen here: http://lagaskifte.se/forumbilder/FAMC.PNG

Is there some error in my code, causing this?

Here is my GEDCOM file contents (a test file with one single person):

0 HEAD
1 SOUR Disgen
2 VERS 8.2d
2 CORP Föreningen DIS - Datorhjälp i släktforskningen
3 ADDR Gamla Linköping
4 CONT S-582 46 Linköping
4 CONT Sverige
4 CONT Tfn: 013-14 90 43
4 CONT E-mail: [email protected]
4 CONT Hemsida: www.dis.se
1 DATE 14 SEP 2017
2 TIME 17:56:38
1 SUBM @XREFSUBM@
1 GEDC
2 VERS 5.5
2 FORM LINEAGE-LINKED
1 CHAR ANSI
1 FILE C:\Users\Public\Documents\Dg82Data\DgGed\testFAMC3.ged
0 @XREFSUBM@ SUBM
1 NAME (not supplied)
0 @16@ INDI
1 SEX F
1 NAME Martha /Svensson/
1 BIRT
2 DATE 4 OCT 1903
2 PLAC Göteborgs Masthugg (O)
2 SOUR SDB4
1 DEAT
2 DATE 20 JAN 1982
1 FAMC @305@
1 CHAN
2 DATE 27 AUG 2017
3 TIME 08:48:00
0 @305@ FAM
1 MARR
2 DATE 27 JUL 1890
2 SOUR Göteborgs Oscar Fredrik AIIa:10 p 1137
1 CHIL @16@
1 CHAN
2 DATE 5 AUG 2017
3 TIME 13:53:00

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.