Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESRI Dump Internal JSON #55

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

ESRI Dump Internal JSON #55

wants to merge 6 commits into from

Commits on Sep 17, 2023

  1. Configuration menu
    Copy the full SHA
    39e29c4 View commit details
    Browse the repository at this point in the history
  2. Output CSV Directly

    ingalls committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    56d4ea9 View commit details
    Browse the repository at this point in the history
  3. Update License

    ingalls committed Sep 17, 2023
    Configuration menu
    Copy the full SHA
    36b5f36 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2023

  1. Configuration menu
    Copy the full SHA
    42a10d6 View commit details
    Browse the repository at this point in the history
  2. Convert lake-man-split2 fixture using:

    import fs from 'node:fs';
    
    let file = String(fs.readFileSync('/home/null/Development/openaddresses/batch-machine/openaddr/tests/conforms/lake-man-split2.csv'))
        .split('\n')
        .map((line) => {
            return line.split(',');
        });
    
    const headers = file.splice(0, 1)[0];
    file.pop();
    
    file = file.map((line) => {
        const res = {}
        for (let i = 0; i < headers.length; i++) {
            res[headers[i]] = line[i];
        }
    
        res['OA:x'] = Number(res['OA:x'])
        res['OA:y'] = Number(res['OA:y'])
    
        return {
            type: 'Feature',
            properties: res,
            geometry: {
                type: 'Point',
                coordinates: [ res['OA:x'], res['OA:y'] ]
            }
        };
    });
    
    console.log(file.map((line) => JSON.stringify(line)).join('\n'));
    ingalls committed Sep 18, 2023
    Configuration menu
    Copy the full SHA
    502b3aa View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    add594d View commit details
    Browse the repository at this point in the history