https://github.com/watergis/postgis2inp
This module is to create EPANET INP file directory from PostGIS
https://github.com/watergis/postgis2inp
epanet-inp inp postgis
Last synced: about 1 month ago
JSON representation
This module is to create EPANET INP file directory from PostGIS
- Host: GitHub
- URL: https://github.com/watergis/postgis2inp
- Owner: watergis
- License: mit
- Created: 2020-07-24T06:35:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-22T14:42:11.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T05:43:06.657Z (6 months ago)
- Topics: epanet-inp, inp, postgis
- Language: JavaScript
- Size: 232 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# postgis2inp

This module is to create EPANET INP file directory from PostGIS
## Installation
```
npm install @watergis/postgis2inp
```## Usage
```js
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.
- [watergis/postgis2geojson](https://github.com/watergis/postgis2geojson): extract geojson files from PostGIS
- [watergis/geojson2inp](https://github.com/watergis/geojson2inp): convert geojson files into INP file.You must configure SQLs for your PostGIS database, the sample of `config.js` is under [test](./test) directory. Please have a look of it.
## Build
```
npm run build
```## Test
```
npm test
```