Forum:Request help/No more relation-data in the backup-files?: Difference between revisions
(Created page with "<div class="forumheader" style="margin: 1; background-color: #eeeeee; text-align: left; padding: 5px;">'''Forums → Forum:Request help or feedback|Reques...") |
(are you sure your tools are up-to-date?) |
||
Line 4: | Line 4: | ||
Hello all! Once in a while i download the latest backup (ogf-planet.osm.pbf) from this page https://ogfdata.rent-a-planet.com/backups/ . With osmconvert i clip it to the area of my country of Neberly and i have some more scripts to get some data out of it. But with the files i downloaded in august and this morning i noticed there is no more data on relations in them. The files i had before (last from november 2021) did had relation-data. My question is then what happened? Is it on purpose that relation-data is no longer included? Is it somewhere else to find? Or is it some hick-up in te last months waiting to be repaired? Does someone know? [[User:Antoon|Antoon]] ([[User talk:Antoon|talk]]) 09:11, 1 October 2022 (UTC) | Hello all! Once in a while i download the latest backup (ogf-planet.osm.pbf) from this page https://ogfdata.rent-a-planet.com/backups/ . With osmconvert i clip it to the area of my country of Neberly and i have some more scripts to get some data out of it. But with the files i downloaded in august and this morning i noticed there is no more data on relations in them. The files i had before (last from november 2021) did had relation-data. My question is then what happened? Is it on purpose that relation-data is no longer included? Is it somewhere else to find? Or is it some hick-up in te last months waiting to be repaired? Does someone know? [[User:Antoon|Antoon]] ([[User talk:Antoon|talk]]) 09:11, 1 October 2022 (UTC) | ||
:Are you sure your tools are up-to-date? I use the backup files all the time, and they have relation data in them. I just did a quick test on a fresh setup: | |||
<syntaxhighlight lang="bash"> | |||
$ wget https://data.opengeofiction.net/backups/ogf-planet.osm.pbf | |||
$ osmconvert ogf-planet.osm.pbf -o=gobras.osm.pbf -B=gobras.poly --complex-ways | |||
# I can load this OSM.PBF file in JOSM, it has 2253 relations in it | |||
$ osmconvert --version | head -2 | |||
osmconvert 0.8.10 Parameter Overview | |||
$ osmconvert gobras.osm.pbf -o=gobras.o5m | |||
$ osmfilter gobras.o5m --drop-nodes --drop-ways --out-count=type | |||
1512 multipolygon | |||
399 route | |||
159 boundary | |||
103 restriction | |||
28 route_master | |||
18 land_area | |||
10 site | |||
8 building | |||
1 collection | |||
1 relation | |||
1 treaty | |||
</syntaxhighlight> | |||
:The tools used to create the backup changed around April 2022, older utils might not support reading the newer files? [[User:Wangi|wangi]] ([[User talk:Wangi|talk]]) 13:07, 1 October 2022 (UTC) |
Revision as of 13:07, 1 October 2022
Hello all! Once in a while i download the latest backup (ogf-planet.osm.pbf) from this page https://ogfdata.rent-a-planet.com/backups/ . With osmconvert i clip it to the area of my country of Neberly and i have some more scripts to get some data out of it. But with the files i downloaded in august and this morning i noticed there is no more data on relations in them. The files i had before (last from november 2021) did had relation-data. My question is then what happened? Is it on purpose that relation-data is no longer included? Is it somewhere else to find? Or is it some hick-up in te last months waiting to be repaired? Does someone know? Antoon (talk) 09:11, 1 October 2022 (UTC)
- Are you sure your tools are up-to-date? I use the backup files all the time, and they have relation data in them. I just did a quick test on a fresh setup:
$ wget https://data.opengeofiction.net/backups/ogf-planet.osm.pbf
$ osmconvert ogf-planet.osm.pbf -o=gobras.osm.pbf -B=gobras.poly --complex-ways
# I can load this OSM.PBF file in JOSM, it has 2253 relations in it
$ osmconvert --version | head -2
osmconvert 0.8.10 Parameter Overview
$ osmconvert gobras.osm.pbf -o=gobras.o5m
$ osmfilter gobras.o5m --drop-nodes --drop-ways --out-count=type
1512 multipolygon
399 route
159 boundary
103 restriction
28 route_master
18 land_area
10 site
8 building
1 collection
1 relation
1 treaty