cnurse / familytreeproject.gedcom Goto Github PK
View Code? Open in Web Editor NEWA GEDCOM parser.
License: MIT License
A GEDCOM parser.
License: MIT License
My Ancestry created gedcom uses long values for individuals, current functionality cannot parse, and results in @i1@ for every individual record.
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
Hi @cnurse: I work for a firm based in North Vancouver (www.hatfieldgroup.com) that needs some help with a genealogy software project. Can you write me an email ([email protected]) if you're interested and/or available?
-- Jason
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.