8000 GitHub - fosskers/streaming-osm: A hand-written streaming byte parser for OpenStreetMap Protobuf data.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fosskers/streaming-osm

Repository files navigation

streaming-osm

This library provides the ability to read and process OpenStreetMap data via the streaming ecosystem. Since streaming allows for very little RAM overhead despite file size, we can process very large OSM PBF files just by providing a file path:

import           Streaming
import           Streaming.Osm
import qualified Streaming.Prelude as S

-- | Count all nodes.
count :: IO ()
count = do
  len <- runResourceT . S.length_ . nodes . blocks $ blobs "yourfile.osm.pbf"
  print len

About

A hand-written streaming byte parser for OpenStreetMap Protobuf data.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  
0