All Projects → maguro → pbf

maguro / pbf

Licence: Apache-2.0 license
OpenStreetMap PBF golang parser

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to pbf

pydriosm
PyDriosm: an open-source tool for downloading, reading and PostgreSQL-based I/O of OpenStreetMap data
Stars: ✭ 42 (+10.53%)
Mutual labels:  openstreetmap, openstreetmap-protobuffer-format
openpoiservice
📍 Openpoiservice is a flask application which hosts a highly customizable points of interest database derived from OpenStreetMap data.
Stars: ✭ 134 (+252.63%)
Mutual labels:  openstreetmap, openstreetmap-protobuffer-format
GPXSee-maps
GPXSee maps
Stars: ✭ 27 (-28.95%)
Mutual labels:  openstreetmap
Leaflet Example
🗺 An example of how to use Leaflet to create an interactive map.
Stars: ✭ 41 (+7.89%)
Mutual labels:  openstreetmap
coin-map-android
Easily find places to spend sats anywhere on the planet
Stars: ✭ 23 (-39.47%)
Mutual labels:  openstreetmap
idly
Collection of OSM related tools
Stars: ✭ 18 (-52.63%)
Mutual labels:  openstreetmap
vectorpipe
Convert Vector data to VectorTiles with GeoTrellis.
Stars: ✭ 64 (+68.42%)
Mutual labels:  openstreetmap
osm-gis-export
Export OSM data to GIS formats like Shapefiles, Spatialite or PostGIS.
Stars: ✭ 20 (-47.37%)
Mutual labels:  openstreetmap
beautified-JOSM-preset
Improved version of the JOSM presets
Stars: ✭ 38 (+0%)
Mutual labels:  openstreetmap
basemaps
A lightweight package for accessing basemaps from open sources in R 🗺️
Stars: ✭ 39 (+2.63%)
Mutual labels:  openstreetmap
trackanimation
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.
Stars: ✭ 74 (+94.74%)
Mutual labels:  openstreetmap
osmcz
JS mapová appka pro openstreetmap.cz (osmcz-app)
Stars: ✭ 35 (-7.89%)
Mutual labels:  openstreetmap
osmose-backend
Part of osmose that runs the analysis, and send the results to the frontend.
Stars: ✭ 74 (+94.74%)
Mutual labels:  openstreetmap
Osmunda
An offline geocode library for android, powered by SQLite, using osm data. 离线地理编码Android库,基于SQLite,使用开放街道地图数据。
Stars: ✭ 37 (-2.63%)
Mutual labels:  openstreetmap
osm4scala
Scala and Spark library focused on reading OpenStreetMap Pbf files.
Stars: ✭ 62 (+63.16%)
Mutual labels:  openstreetmap
knooppuntnet
Route planner and quality assurance for walking and cycling networks in OpenStreetMap.
Stars: ✭ 20 (-47.37%)
Mutual labels:  openstreetmap
timeshape
Java library to find timezone based on geo coordinates
Stars: ✭ 116 (+205.26%)
Mutual labels:  openstreetmap
literan-moscow
No description or website provided.
Stars: ✭ 18 (-52.63%)
Mutual labels:  openstreetmap
openfairdb
Open Fair DB is the CreativCommons Backend of Kartevonmorgen.org
Stars: ✭ 53 (+39.47%)
Mutual labels:  openstreetmap
freemap-mapnik
Outdoor map mainly for https://www.freemap.sk/
Stars: ✭ 16 (-57.89%)
Mutual labels:  openstreetmap

pbf

OpenStreetMap PBF golang encoder/decoder

Build Status Go Report Card Documentation codecov.io License

A golang based OpenStreetMap PBF encoder/decoder with a handy command line utility, pbf.

pbf Command Line Utility

The pbf CLI can be installed using the go install command:

$ go install m4o.io/pbf/cmd/pbf

pbf info

The pbf CLI can be used to obtain summary and extended information about an OpenStreetMap PBF file:

$ pbf info -i testdata/greater-london.osm.pbf
BoundingBox: [-0.511482, 51.28554, 0.335437, 51.69344]
RequiredFeatures: OsmSchema-V0.6, DenseNodes
OptionalFeatures: 
WritingProgram: Osmium (http://wiki.openstreetmap.org/wiki/Osmium)
Source: 
OsmosisReplicationTimestamp: 2014-03-24T21:55:02Z
OsmosisReplicationSequenceNumber: 0
OsmosisReplicationBaseURL: 

JSON output can be obtained by adding the -j option:

$ pbf info -j -i testdata/greater-london.osm.pbf | jq
{
  "BoundingBox": {
    "Left": -0.511482,
    "Right": 0.33543700000000004,
    "Top": 51.69344,
    "Bottom": 51.285540000000005
  },
  "RequiredFeatures": [
    "OsmSchema-V0.6",
    "DenseNodes"
  ],
  "OptionalFeatures": null,
  "WritingProgram": "Osmium (http://wiki.openstreetmap.org/wiki/Osmium)",
  "Source": "",
  "OsmosisReplicationTimestamp": "2014-03-24T14:55:02-07:00",
  "OsmosisReplicationSequenceNumber": 0,
  "OsmosisReplicationBaseURL": ""
}

Here, jq is used to pretty print the compact JSON.

Extended information about the OpenStreetMap PBF file can be obtained by using the -e option. This causes the entire file to be scanned, which can take a very long time; a progress bar is displayed on stderr.

$ pbf info -e -i testdata/greater-london.osm.pbf
BoundingBox: [-0.511482, 51.28554, 0.335437, 51.69344]
RequiredFeatures: OsmSchema-V0.6, DenseNodes
OptionalFeatures: 
WritingProgram: Osmium (http://wiki.openstreetmap.org/wiki/Osmium)
Source: 
OsmosisReplicationTimestamp: 2014-03-24T21:55:02Z
OsmosisReplicationSequenceNumber: 0
OsmosisReplicationBaseURL: 
NodeCount: 2,729,006
WayCount: 459,055
RelationCount: 12,833

Finally, pbf can read an OpenStreetMap PBF file from stdin:

$ cat testdata/greater-london.osm.pbf | pbf info -e

In this case, a progress bar is not displayed since there is no way to know, a priori, what the size of the PBF file is.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].