# csv-wkt-link

> A command line tool to link WKT data in two CSV files based on geographic coordinates

Latest version **1.1.1** (published 2020-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install csv-wkt-link
pnpm add csv-wkt-link
yarn add csv-wkt-link
bun add csv-wkt-link
```

Provides the command `csv-wkt-link`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2020-03-31 |
| First published | 2020-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Cody Brumfield |
| Maintainers | cody1213 |
| Keywords | wkt, csv, geography |

## Links

- npm: https://www.npmjs.com/package/csv-wkt-link
- Repository: https://github.com/the-data-center/csv-wkt-link
- Homepage: https://github.com/the-data-center/csv-wkt-link#readme
- Issues: https://github.com/the-data-center/csv-wkt-link/issues
- npm.io page: https://npm.io/package/csv-wkt-link

## Dependencies (5)

- [yargs](https://npm.io/package/yargs.md) ^15.0.2
- [csvtojson](https://npm.io/package/csvtojson.md) ^2.0.10
- [wellknown](https://npm.io/package/wellknown.md) ^0.5.0
- [@turf/intersect](https://npm.io/package/@turf/intersect.md) ^6.1.3
- [@turf/boolean-point-in-polygon](https://npm.io/package/@turf/boolean-point-in-polygon.md) ^6.0.1

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.1.1 (latest) — 2020-03-31
- 1.1.0 — 2020-02-11
- 1.0.1 — 2020-01-24
- 1.0.0 — 2020-01-24

## README

# CSV WKT Data Linker
A CLI tool for NodeJS that links properties on two different CSV files with a WKT geography field by determining if a geographic point is within a larger geographic region and then linking the rest of the data.

## About The Data Center
This project is sponsored by [The Data Center of Southeast Louisiana](https://www.datacenterresearch.org) [The Data Center](https://www.datacenterresearch.org) is a fully independent, data-focused non-profit with a mission to build prosperous, inclusive, and sustainable communities by making informed decisions possible. If you find this tool useful, please visit [our web site to learn more](https://www.datacenterresearch.org) about our work and consider [supporting us](https://www.datacenterresearch.org/support-us) in our mission.

##

Link two CSV files by geographic coordinates (WKT format)
```
Options:
  --version                Show version number                         [boolean]
  -p, --polyfile           CSV file with WKT Polygons and GEOID in the
                           properties
  -q, --polyfileWKTfield   Fieldname for the poly file WKT field (default:
                           geometry)
  -c, --coordinatesfile    GeoJSON with coordinates/points to be given correct
                           GEOID. (If it has polygons, the centroid will be
                           used)
  -k, --pointfileWKTfield  Fieldname for the point file WKT field (default:
                           geometry)
  -f, --fields             Comma separated fields to match (default: GEOID)
  -r, --reverse            Copy the data from the point to the polygon instead
  -h, --help               Show help                                   [boolean]

Examples:
  npx csv-wkt-link -c example/assets.csv -k geo -p example/neighborhood-associations-geo.csv -q the_geom -f OrgName

  npx csv-wkt-link --coordinatesfile example/assets.csv --pointfileWKTfield geo --polyfile example/neighborhood-associations-geo.csv --polyfileWKTfield the_geom --fields OrgName
```

---
_Source: https://npm.io/package/csv-wkt-link · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
