Open main menu

Gramps β

Changes

Addon:Import Text Gramplet

3 bytes removed, 00:24, 29 March 2022
m
add-on > addon ( stick with one spelling )
[P011],"Miami,Miami-Dade,FL,USA",City,,</pre>
Notice that the sample place list has placeholder commas when the Latitude and Longitude are missing for 10 of the 11 rows. And this test data has the Place name in the flat form. After importing, you can use the [[Addon:PlaceUpdate_Gramplet#Generating_a_place_hierarchy|Generate hierarchy]] option of the {{man label|[[Addon:PlaceUpdate_Gramplet|Place Update]]}} add-on addon Gramplet to convert the flat form into a hierarchy. Then filter for Unknown types and use the Place Type option to set the State and County types to an extended selection of the enclosing Places.
The example above is for importing non-hierarchical Place definitions. You would still have to reassemble the hierarchy. The following example assembles a country enclosing a state having 2 counties. And one of those counties has a city.
You'll notice that the last line does not specify a Place ID. This lets Gramps use the next automatically generated ID. But, the drawback is that if you were to run this import twice, The Import Text addon wouldn't recognize it as an existing place and would create a duplicate Place of the same name, in the same county. This add-on addon ONLY compares IDs and uses matching IDs to update/overwrite records rather than create new ones.
<pre>Place,Enclosed_by,Name,Type,Latitude,Longitude
== See also ==
* [[Gramps_{{man version}}_Wiki_Manual_-_Manage_Family_Trees:_CSV_Import_and_Export|CSV Import]] (the CSV foundation for the interactive [[Addon:ImportGramplet|Import Gramplet]] add-onaddon)
[[Category:Plugins]]
[[Category:Developers/General]]
[[Category:Gramplets]]