Skip to main content
100%

GeoJOIN

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Apr 5, 2013

This example shows how to merge external attribute data from CSV or TSV files into a GeoJSON FeatureCollection, using a property or feature ID as the join key. It accepts multiple property files and can transform selected fields, including converting strings to numbers with a leading plus sign. The script runs on Node.js and uses the `optimist` library for command-line parsing, the `dsv` library for delimited file parsing, and standard `fs` and `JSON` modules for file I/O and serialization. The output is written either to a specified file or to standard output.

AI-generated description

A simple script for joining a GeoJSON file with external properties in a CSV or TSV file; extracted from TopoJSON.

gpl-3.0 Licensed

Similar vizzes