https://github.com/osmlab/comparecsv-to-fix
https://github.com/osmlab/comparecsv-to-fix
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/osmlab/comparecsv-to-fix
- Owner: osmlab
- Created: 2016-03-11T17:05:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-13T06:45:56.000Z (over 9 years ago)
- Last Synced: 2025-06-30T07:47:57.302Z (about 1 year ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 1
- Watchers: 29
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# comparecsv-tofix
Compare CSV files before upload in to-fix. the CSV files must come from [osmlint2csv](https://github.com/osmlab/osmlint2csv).
`comparecsv-to-fix` will extract data from to-fix DB, the items that have been marked as `not-an-error` and then `comparecsv-to-fix` will read the new file which you want to upload to-fix, finally the app will make a comparison between these two datasets, the output will be items that have not been marked as `not-an-error`.
This will help on focused in items which need to resolve through to-fix. and not on the `not-an-error` issues.
## Setting up the access to DB
For accessing to the database you are required to set the environment variables
```
export DBUsername='postgres'
export DBPassword='1234'
export DBAddress='database'
export Database='dbtofix'
```
## Install
```
git clone https://github.com/osmlab/comparecsv-to-fix.git
cd comparecsv-to-fix/
npm install && npm link
```
## How to use
```
comparecsvtofix --idtask=unconnectedmajorhighways unconnected-major-highways.csv > result.csv
```