Is there a way to get this optional feature string in Osmosis? I expected it to 
be passed as metadata to the initialize method of Sink, but it wasn't.


From: Jochen Topf <>
Sent: Wednesday, March 7, 2018 5:32:52 AM
To: Locke, Jonathan
Cc: Brett Henderson; Van Exel, Martijn;
Subject: Re: [osmosis-dev] Osmosis and Osmium-enhanced PBF files with way node 

On Mon, Mar 05, 2018 at 05:18:00PM +0000, Locke, Jonathan wrote:
> Only one technical question for you: is there any way to detect from
> the header of the PBF file whether the file contains way node
> locations? It would be nice not to have to read nodes for 45 minutes
> before discovering that the PBF file doesn't have way node locations.
> Once there's an osmosis release with the way node location feature in
> it (and ideally a data drop with way node locations), we hope to
> switch to consuming only PBF files with way node locations and we'd
> remove support from our apps for PBF files without this information
> (thus the need to detect if the file has way nodes).

Osmium sets "LocationsOnWays" as an "optional feature" string in the
header to signify that there are locations on the ways.

Jochen Topf,1,FuOx7DlpJLPRK_QydJ8IUnCrezjCVNUEtMN8rMuZ8QHTDpbSE3iS6YyeL_timpP1CQjKtbrxBzehr6eh7HJWweI8uY8JNwyUnl71UjgP3cU4PRPoLGFE&typo=1
osmosis-dev mailing list

Reply via email to