GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




SVG genogram add-in for Narrative Report

Click to view RSS...
Author adds GenoMaps in SVG format to the Narrative Report
Posted Saturday, October 29, 2005 - Post #9032
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 1 hour ago
Posts: 3,424, Visits: 26,475
Thought I'd let you guys & gals have a glimpse at the 1st cut of my SVG graphics add-in to the existing Narrative Report:

It provides a reasonable facsimile for each GenoMap that can be panned and zoomed. Internal hyperlinks are also implemented allowing navigation from one genogram to another. Clicking on a individual's gender icon on the genogram causes the detail frame above to show that individual's details. Similarly clicking on the tree icon next to the individual's name in the detail frame causes the genogram containing that individual to be displayed. The same comments apply to families. The genomap can be hidden from view when required. You can also place background images and photos on hte map as seen in the sample above. I've tested it on my main Geno Pro file with 45 GenoMaps, ~2700 Individuals & ~700 families without problems. Click on the info icon or the 'Help' hyperlink to see how to pan and zoom the graphic.

This is still work in progress and improvements will be made post Beta 15. I.e. the initial display will be zoomed to show the complete genogram. Also borders around individuals will be implemented correctly. Currently the border is a fixed size but will match the GenoMap borders at a later date. I'll also have a go at displaying emotional relationships where present but that looks tricky. Also performance will be improved if the SVG files are compressed (gzipped).

It requires an SVG viewer plug-in to be present with your browser. The best at present is Adobe's SVG viewer Beta version 6.0. This works with MS IE and Mozilla Firefox but the roll-over animations are not supported in the latter. Mozilla Firefox Beta 1.5 has a built-in SVG viewer but feature support is poor at present. If you use Adobe SVG Viewer 3.x then text in labels will be missing, however there is a version of this SVG Viewer for MAC OS X, allowing MAC users with IE browser to see much of your genomaps (not sure if it works with Safari browser)

If an Adobe SVG Viewer is not installed the Javascript code prompts the user to install it and will display Adobe's Beta SVG Viewer install page.

There are a few extra files required and changes to several existing template files so I have attached a zipped version of the complete report template for those of you who want to try it. (updated 2005/10/31 21:10) If you have problems with the zip file attachment try Mozilla Firefox browser instead of MS IE you can also download it from here


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Monday, October 31, 2005 by Ron
Posted Saturday, October 29, 2005 - Post #9034
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Customers
Important Contributors
GenoPro version: 3.0.0.7

Last Login: Sunday, November 26, 2023
Posts: 213, Visits: 4,464
WOW!!!!!! It is amazing Smile

Just a question. Isn't it possible to convert the genomap to a PNG instead of using SVG?

No need for additional plug-in and you get excellent quality.

Edited: Saturday, October 29, 2005 by beraha

Posted Saturday, October 29, 2005 - Post #9035
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 1 hour ago
Posts: 3,424, Visits: 26,475
I agree PNG would give acceptable image quality, and with scroll bars you could probably pan the image, but I don't see how you could implement zoom or the close interaction between HTML and the graphic. SVG is more than just a graphic image, each element and its attributes are represented in the underlying domain object model (or DOM) and each can be manipulated via scripting, much like DHTML and XML. SVG is an WC3 open standard and hopefully one day will supercede MacroMedia's Flash as the 'de facto' standard for Web graphics.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Saturday, October 29, 2005 - Post #9037
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Ron, wanted to try your new report, but I always get a crash on GenoPro when I reach "places.htm". Tried with and without japanese characters. No other message, so I do not know yet where to start searching for this.
Will try replacing step by step with previous workable files.
MR
Posted Saturday, October 29, 2005 - Post #9040
Forum Writer

Forum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum WriterForum Writer

Customers
GenoPro version: 3.0.0.7

Last Login: Wednesday, July 6, 2016
Posts: 57, Visits: 149
It's amazing! Thanks Ron. I was even afraid to ask for this feature...

FYI get the following red error msgs, but the report is OK (3 times for each - map0, map1 and map2)

Line 70: The file 'genomaps/map.svg' is already assigned. Using 'genomaps/map0.svg' instead...

Line 71: The file 'genomaps/map.htm' is already assigned. Using 'genomaps/map0.htm' instead...

Posted Saturday, October 29, 2005 - Post #9041
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Received the same message here when trying to create a report for all genomaps. Works nice with only one out of many genomaps. Anything in particular to be set up or to configure?
rdn
Posted Saturday, October 29, 2005 - Post #9042
Forum Guru

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru

Customers
GenoPro version: 2.5.4.1

Last Login: Friday, October 18, 2013
Posts: 142, Visits: 3,822
Ron,

  Your SVG looks like a great output for graphics.  However, in my tree, a large percentage of the people do not show up (no boxes, circles or names appear), although the various relationship lines do show up.  I could not find a commond denominator between those who do appear and those who do not.  Have you any idea why this happens?  I have about 1400 people in one GenoMap I am trying to display. 

Danny

Posted Sunday, October 30, 2005 - Post #9043
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 1 hour ago
Posts: 3,424, Visits: 26,475
MR (10/30/2005)FYI get the following red error msgs, but the report is OK (3 times for each - map0, map1 and map2)

Line 70: The file 'genomaps/map.svg' is already assigned. Using 'genomaps/map0.svg' instead...

Line 71: The file 'genomaps/map.htm' is already assigned. Using 'genomaps/map0.htm' instead...

These are just comments not errors. They are not included in any error count and the end of the log. I couldn't find another way to uniquely identify the SVG files. This is a built-in 'facility' within Dan's Report Generator. I didn't want to use the GenoMap name itself in case it is not a valid filename.

Sorry maru-san, I can't think why the report should stop during places.htm as I haven't changed that. It does however include code\util.vbs which I have changed. Possibly your version has a syntax error in it. Does it just stop or is it a crash that causes GenoPro to exit? The only configuration is the Parameter 'fLinkToSVGMap' in Config.xml that causes the tree icon to be placed after the individual's name in the detail frame.

And rdn, I think 1400 people is way too big for this sort of display, I suspect it will be very slow to render when panning and zooming. I personally try to organise my GenoMaps so that each can be printed on an A4 landscape page. This gives some 50/60 people per GenoMap. This I feel is also a reasonable number show as an SVG image.

However this does not explain why the gender icons etc. do not appear. This is probably a text item somewhere that I haven't encoded as HTML text. For example <Unknown> should appear in genomaps/map?.svg as &lt;Unknown&gt; and not as <Unknown> I will check through the code again.


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Edited: Sunday, October 30, 2005 by Ron
Posted Sunday, October 30, 2005 - Post #9044
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Sunday, March 21, 2021
Posts: 716, Visits: 12,927
Ron (10/30/2005)
MR (10/30/2005)FYI get the following red error msgs, but the report is OK (3 times for each - map0, map1 and map2)

Line 70: The file 'genomaps/map.svg' is already assigned. Using 'genomaps/map0.svg' instead...

Line 71: The file 'genomaps/map.htm' is already assigned. Using 'genomaps/map0.htm' instead...

These are just comments not errors. They are not included in any error count and the end of the log. I couldn't find another way touniquely identifythe SVG files. This is a built-in 'facility' within Dan's Report Generator. I didn't want to use the GenoMap name itself in case it is not a valid filename.

Sorry maru-san, I can't think why the report should stop during places.htm as I haven't changed that. It does however include code\util.vbs which I have changed. Possibly your version has a syntax error in it. Does it just stop or is it a crash that causes GenoPro to exit? The only configuration is the Parameter 'fLinkToSVGMap' in Config.xml that causes the tree icon to be placed after the individual's name in the detail frame.

It crashed, causing GenoPro to exit.

Thanks, ron, for looking into these messages, but still receive following message:
"Processing template 'map.svg'...
The template does not contain any charset encoding... assuming UTF-8...
Unable to write file 'genomaps/map੠Ǖ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/mapଠǕ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/map௠Ǖ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/mapರǕ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/map൰Ǖ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/mapภǕ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/map໠Ǖ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/mapᄀǕ³ '.
Error: Write Fault. Unable to create and/or write file (errCode=29"
Processing template 'map.htm'...
The template does not contain any charset encoding... assuming UTF-8...
Unable to write file 'genomaps/map੠Ǖ³,'.
Error: Write Fault. Unable to create and/or write file (errCode=29)
Unable to write file 'genomaps/mapଠǕ³惿'.

The problem with the places is solved. Please note its not urgent, but would be nice to see it working.


Edited: Sunday, October 30, 2005 by GenoProSupport
Posted Sunday, October 30, 2005 - Post #9045
Famous Writer

Famous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous WriterFamous Writer

Gamma
Customers
Important Contributors
FamilyTrees.GenoPro.com
Translator
GenoPro version: 3.1.0.1

Last Login: Wednesday, April 23, 2025
Posts: 257, Visits: 2,861
Ron You're the Man!!!

Thanks for such good job! At first I got some strange error and all newly created files in directory were classified as hidden and couldn't be written. I deleted whole directory and tried again... Just the "map" error mentioned before.

Would it be pushing to get a zoom on a certain person when some person's link is clicked on!!!


"εν οιδα οτι ουδεν οιδα" (Σωκρατησ)  - "The only thing that I know is that I don't know anything" (Socrates)


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!