GeoJSON to Aquius

This tool converts geographic network data in GeoJSON format into an Aquius dataset file. GeoJSON lines become links, points become nodes, and boundaries become places (population). Lines must be provided, other data is optional. If points are provided, they must match the coordinates of the start of end of lines to be processed usefully. GeoJSON files must be projected using WGS 84 (which is normally the default for the format).

Non-spatial data may be attached as GeoJSON properties (data columns). This data matches the Aquius data structure (for links and nodes respectively) except each piece of data take a GeoJSON property of its own. For example, reference items that Aquius contains within a reference object within a properties object are instead exposed as _top_ _level_ GeoJSON property. Data that is otherwise held as an Array (notably product and service keys) is instead provided in the GeoJSON as a comma-separated string. For example, a network with two service filter definitions should attach a service property to each GeoJSON line with the string value "10,20", where 10 is the service count associated with the first filter and 20 the second filter.

GeoJSON files can be crafted to match the expected property names, or bespoke names in GeoJSON files can be assigned using a config.json file, as documented. The optional file config.json is also important for defining product and service filters (which are otherwise left empty), and adding other header data, such as meta names and translations.

See documentation for full configuration details and how to use of the output file. For routine or repeat usage, the merge script can incorporated into a bespoke application which imports the javascript and calls the function geojsonToAquius.cartograph(geojson, options), as documented.