stream-features-from-file
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.