Skip to content

This module is to create EPANET INP file directory from PostGIS

License

Notifications You must be signed in to change notification settings

watergis/postgis2inp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postgis2inp

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