<commit_before># polyline-group-parser

This module allows one to extract geojson & kml from a csv file grouped with polyline data.

*Requires node.js v6.2.1*

## Usage:

```bash
$ polyline-gp --input /file/to.csv --output /file/to/output/folder --group "Group column" --polyline "Polyline column"
```

Lets say you have a CSV like this located at `./my.csv`:

|                                                     |
|-----------------------------------------------------|
| Group, Polyline, Data                               |
| Yonge-Dundas Square, _omiG``ocNw@gFw@Jc@~BRlC, Main |
| City Hall, w_miGbdocN~DmAx@lG}DhA, Old City Hall    |
| City Hall, icmiGpzocN{@wGtF_BEjH, Toronto City Hall |
  

You can run the command:

```bash
$ polyline-gp -i ./my.csv
```

This would create an output folder in your current directory with the formed geojson/kml files inside. Any extra columns would be added as properties to the GIS file.

You can change the column names that polyline-gp looks for with the `--group` and `--polyline` arguments

### Arguments

```
--input       # [Required] The file location of the csv to parse
--output      # The folder that you want your output to go (Default: "./")
--group       # The column to group the csv file by (Default: "Group")<commit_msg>bash flag<commit_after># polyline-group-parser

This module allows one to extract geojson & kml from a csv file grouped with polyline data.

> *Requires node.js v6.2.1*

## Usage:

```bash
$ polyline-gp --input /file/to.csv --output /file/to/output/folder --group "Group column" --polyline "Polyline column"
```

Lets say you have a CSV like this located at `./my.csv`:

|                                                     |
|-----------------------------------------------------|
| Group, Polyline, Data                               |
| Yonge-Dundas Square, _omiG``ocNw@gFw@Jc@~BRlC, Main |
| City Hall, w_miGbdocN~DmAx@lG}DhA, Old City Hall    |
| City Hall, icmiGpzocN{@wGtF_BEjH, Toronto City Hall |
  

You can run the command:

```bash
$ polyline-gp -i ./my.csv
```

This would create an output folder in your current directory with the formed geojson/kml files inside. Any extra columns would be added as properties to the GIS file.

You can change the column names that polyline-gp looks for with the `--group` and `--polyline` arguments

### Arguments

```bash
--input       # [Required] The file location of the csv to parse
--output      # The folder that you want your output to go (Default: "./")
--group       # The column to group the csv file by (Default: "Group")
{'fraction_non_alphanumeric': 0.14703588143525742, 'fraction_numerical': 0.00234009360374415, 'mean_word_length': 2.2842509603072982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3327343', 'n_tokens_mistral': 808, 'n_tokens_neox': 767, 'n_words': 301}