diff options
author | Nemael <100dragons@gmail.com> | 2021-02-12 16:42:57 +0100 |
---|---|---|
committer | Nemael <100dragons@gmail.com> | 2021-02-12 16:42:57 +0100 |
commit | 40effe28304cf183f6a1a05e15ac981b1dee4335 (patch) | |
tree | f842e9bd70162d89193b5e473f3cb29ec105c2f2 /doc/import | |
parent | cc8e259c14b7d5298c6fed6b53c9a41fcbf880de (diff) | |
download | incommon-map-40effe28304cf183f6a1a05e15ac981b1dee4335.tar.gz |
Added description of the parsing scripts and their uses
Diffstat (limited to 'doc/import')
-rw-r--r-- | doc/import/README.md | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/doc/import/README.md b/doc/import/README.md index 92108a3..ba4c23e 100644 --- a/doc/import/README.md +++ b/doc/import/README.md @@ -5,20 +5,24 @@ SPDX-License-Identifier: CC-BY-SA-4.0 --> ## Parsing Resources - -The script `parser.rb` creates a file named `Locations.geojson`, which contains -all the points from the ConcertES and Dewey Maps databases. It parses the .csv -files from the Concertes folder and the .json files from the Dewey folder. To -run it: `ruby parser.rb` +The three scripts `ParserDewey.rb`, `ParserConcertes.rb` and `ParserPotagers.rb` parse .csv and .json files containing map data from Maps Dewey, ConcertES and the Ceinture Alimentaire de Bruxelles and transforms it inot a .geojson file. +To run it: + `ruby ParserDewey.rb` + `ruby ParserConcertes.rb` + `ruby ParserPotagers.rb` +Each parser creates a corresponding file: + `LocationsDewey.rb` + `LocationsConcertes.rb` + `LocationsPotagers.rb` The main files it uses are: + Concertes/20200312_EntreprisesSignaletique.csv which contains the name of the points from the Concertes data + Concertes/20200312_EntreprisesCoordonnees.csv which contains the coordinates of the points from the Concertes data +and + Dewey/dewey-maps-markers.json which contains the data of the points from the Dewey data +and + potagers_merged_spjoined_ar2_1.csv.diff -- `Concertes/20200312_EntreprisesSignaletique.csv` which contains the name of - the points from the Concertes data -- `Concertes/20200312_EntreprisesCoordonnees.csv` which contains the coordinates - of the points from the Concertes data and -- `Dewey/dewey-maps-markers.json` which contains the data of the points from the - Dewey data ## Importing to Database |