0.1.4 • Published 5 years ago

@watergis/postgis2inp v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

postgis2inp

npm.io GitHub

This module is to create EPANET INP file directory from PostGIS

Installation

npm install @watergis/postgis2inp

Usage

const {postgis2inp} = require('@watergis/postgis2inp');

const config = require('./config');
const pg2inp = new postgis2inp(config);
const file = await pg2inp.generate() //return exported inp file path

This module depends on the following two packages.

You must configure SQLs for your PostGIS database, the sample of config.js is under test directory. Please have a look of it.

Build

npm run build

Test

npm test