Open mbirth opened 3 years ago
webtrees does import co-ordinates from _PLAC_DEFN
records (created by Legacy) and _PLAC
records (created by TNG).
webtrees does not import co-ordinates from INDI:*:PLAC:MAP
. See the FAQ for the reasons why.
My place hierarchy in Gramps
I have never seen a Gramps export. Is the format documented anywhere?
I've read the FAQ but as stated, all my places have unique names and respective coordinates. So birthplace and burial in the same city don't have "City, Country" with different coordinates but "Hospital Name, City, Country" and "Graveyard Name, City, Country" with their respective coordinates. And thus are perfectly suited for import.
Gramps can export to GEDCOM 5.5.1 (.ged) and "GEDCOM Extensions" (.ged2) which both look identical to me. It can also export to GeneWeb, JSON, SQLite, Web Family Tree, vCalendar and vCard. And then there's Gramps XML. There's no real documentation, but I found this: https://gramps-project.org/wiki/index.php/Gramps_XML which has example XMLs.
You haven't told me whether:
Your gramps export is creating LOCATION RECORDS (that we can import), or adding LOCATIONS TO EVENTS (which we won't).
I've only tried the GEDCOM export from Gramps and that one doesn't export locations separately. Only the event places with coordinates.
However, again, all I asked for was a way to copy event places' coordinates into the Geographic locations database - which could even work completely independent from any import. And since the import already populated the Geographic locations - but without the coordinates - all I want is for it to take the coordinates, too.
all I asked for was a way to copy event places' coordinates into the Geographic locations database
The reason this doesn't happen is explained here https://webtrees.net/faq/locations, in the section "Why doesn’t webtrees copy co-ordinates from the events to the gazetteer?"
The reason this doesn't happen is explained here https://webtrees.net/faq/locations, in the section "Why doesn’t webtrees copy co-ordinates from the events to the gazetteer?"
I know, that's what's repeated everywhere over and over again. However, the FAQ completely ignores that there are cases where such a feature would still make sense as not ALL people have various places with the same name but different coordinates. Also there are ways to even handle different coordinates for the same place, e.g. taking the first coordinate pair and ignoring all others; or maybe even some fancy thing like calculating the centre point from all given coordinates.
The reason this doesn't happen is explained here https://webtrees.net/faq/locations, in the section "Why doesn’t webtrees copy co-ordinates from the events to the gazetteer?"
I know, that's what's repeated everywhere over and over again. However, the FAQ completely ignores that there are cases where such a feature would still make sense as not ALL people have various places with the same name but different coordinates. Also there are ways to even handle different coordinates for the same place, e.g. taking the first coordinate pair and ignoring all others; or maybe even some fancy thing like calculating the centre point from all given coordinates.
Or you could take your data and convert it to the format supported by webtrees? If as you say it does not have duplicates it should be easy for you to manually edit it then
I have played about 5 minutes with Gramps - it seems when you export one person to a csv file you export also all places information. It should be not so complicated to change the place records so you cann import it to place hierarchy in webtrees.
And a second thing - when you have a place A, B, C, D, E mostly you have no facts/events associated with the place C, D, E so you have no lati/long information about C, D, E in the GEDCOM-file. Generaly, you have in the GEDCOM export from Gramps only informations about the lowest place-hierarchy level.
I have played about 5 minutes with Gramps - it seems when you export one person to a csv file you export also all places information.
How is this exported?
0 _LOC @X1234@
)1 BIRT/2 PLAC/3 MAP/4 LATI yyy/4 LONG xxx
)Not sure if I am talking about the same export as ro-la, but the standard export function (Family Trees > Export...) allows to export only the places in CSV, with the format (assuming some hierarchy has been defined)
Place,Title,Name,Type,Latitude,Longitude,Code,Enclosed_by,Date
[P0708],,FRANCE,Country,46.2276,2.2137,,,
[P0707],,Auvergne,Region,45.7033,3.3449,,[P0708],
[P0706],,Cantal,County,,,,[P0707],
[P0705],,15320,Unknown,,,,[P0706],
[P0704],,Saint-Just,Village,44.8905,3.2086,,[P0705],
As ro-la mentioned, some manipulations could probably quite easily produce a CSV compatible with the webtrees place import format (or if somebody spend a bit of time on it, they could create a Gramps-to-webtrees custom module to handle it)
How is this exported?
In GEDCOM format, when coordinates are known, they are attached to the event, with the standard 2 PLAC/3 MAP /4 LATI/ 4 LONG
structure, so that would fall under the relevant section of the FAQ.
1 BIRT
2 DATE 1 APR 1871
2 PLAC Saint-Just, 15320, Cantal, Auvergne, FRANCE
3 MAP
4 LATI N44.8905
4 LONG E3.2086
Basically same as #3653 . There are people that use a more fine-grained structure for places. My place hierarchy in Gramps is sometimes down to "Building" level. So for me, (event) places with the same name always have the exact same coordinates.
Please allow a way to import/update the Geographic data from the database or during a GEDCOM import.