ro-crate-to-geojson

1.0.2 • Public • Published

ro-crate-to-geojson

A simple utility to extract geographical information from RO-Crates and output an RO-Crate containing GeJSON files for further analysis - eg in the TLCMap analytical tools.

Usage example

node roc2geo.js test_data/convictions/input_crate/ -c test_data/convictions/config/convictions.config.json

Where:

  • test_data/convictions/input_crate/ is an RO-Crate that has GeoCoordinates items in it.
  • -c points to a config file which for each type of item of interest (in this case Person and Offence)

The configuration file:

{
    "types": {
        "Person" : {
                "findPlaces": "person-geo.js",
                },
        "Offence" : {
            "findPlaces": "offence-geo.js",
        }     
    }
}

This config file points to custom code to extract place data from the RO-Crate - eg in person-geo.js - see that file as an example.

Readme

Keywords

Package Sidebar

Install

npm i ro-crate-to-geojson

Weekly Downloads

0

Version

1.0.2

License

GPL-3.0

Unpacked Size

653 kB

Total Files

42

Last publish

Collaborators

  • ptsefton