Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

geobuf

Package Overview
Dependencies
Maintainers
21
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geobuf

geographic compact binary encoding specification

  • 0.2.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
81K
decreased by-19.08%
Maintainers
21
Weekly downloads
 
Created
Source

geobuf

build status

A compact encoding for geographic data.

Like vector-tile-spec, this is a protobuf-based encoding.

Unlike vector-tile-spec, this deals with untiled data in native projections.

API

featureCollectionToGeobuf(geojson)

Given a GeoJSON FeatureCollection as an object, return a Buffer of geobuf as a ProtoBufjs object.

featureToGeobuf(geojson)

Given a GeoJSON Feature as an object, return a Buffer of geobuf as a ProtoBufjs object.

geobufToFeature(buf)

Given a Buffer of geobuf, return a GeoJSON Feature as an object.

geobufToFeatureCollection(buf)

Given a Buffer of geobuf, return a GeoJSON FeatureCollection as an object.

Binaries

npm install -g geobuf

Installs these nifty binaries:

  • geobuf2geojson: turn geobuf from stdin to geojson on stdout
  • geojson2geobuf: turn geojson from stdin to geobuf on stdout
  • shp2geobuf: given a shapefile filename, send geobuf on stdout

See Also

  • geojsonp - the base for this project, this is more or less geojsonp with more wheelies.
  • twkb - relative to TWKB, this is an implemented project that does not support topology and uses protobuf as its serialization
  • vector-tile-spec
  • topojson - a variant of GeoJSON that supports topology and delta-encoding. geobuf uses delta encoding by virtue of using protobuf, but does not support topology
  • WKT and WKB - popular in databases. Not an open standard.
  • EWKB is a popular superset of WKB.

Keywords

FAQs

Package last updated on 22 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc