Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 632 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 632 Bytes

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.