0.2.0 • Published 7 years ago

@mapbox/stream-features-from-file v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

stream-features-from-file

Build Status

Streams GeoJSON features from a file.

Supports the following source formats:

  • GeoJSON (FeatureCollection only!)
  • CSV
  • Shapefile

Non-GeoJSON formats are read by Mapnik.

Usage

const featureStream = streamFeaturesFromFile(filePath);

streamFeaturesFromFile accepts a filePath argument and returns a readable object-mode stream of GeoJSON features derived from the provided file.