NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi everyone!

I'm trying to get the members (nodes) of a relation as a list. I'm using FME to read the PBF, which is basically using "drv_osm" from GDAL. I tried all options from the config file (osmconf_.ini) and FME itself (offers rarely any) but could not get the members. Instead, I just receive multilines consisting of all the ways/nodes of the relation.

When I use Overpass Turbo and the following query, I get the desired list of members:

relation(6794709); out;

alt text

Is it possible to get this Information from the PDF raw data file somehow?

asked 13 Jun '17, 16:36

Egaru's gravatar image

Egaru
16224
accept rate: 0%

The GDAL driver makes osm data fit into a typical GDAL use case. The solution is to access the data using a library that does not attempt to abstract away the OSM data model. http://wiki.openstreetmap.org/wiki/PBF_Format has some leads for libraries.

(13 Jun '17, 18:23) maxerickson

I suspect that you would be best served by using osmium in one of it incarnations/bindings.

permanent link

answered 13 Jun '17, 19:49

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Ah, ok. So the gdal driver (which is used in FME I want to use) offers no possibility to get the members list. I'll give osmium a try, thanks!

(15 Jun '17, 20:42) Egaru

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128
×60
×4
×2
×1

question asked: 13 Jun '17, 16:36

question was seen: 3,186 times

last updated: 15 Jun '17, 20:43

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum