{"id":13597924,"url":"https://github.com/watergis/geojson2inp","last_synced_at":"2025-06-14T06:04:38.559Z","repository":{"id":109405900,"uuid":"281824511","full_name":"watergis/geojson2inp","owner":"watergis","description":"This module converts GeoJSON to EPANET INP file","archived":false,"fork":false,"pushed_at":"2023-06-22T14:42:56.000Z","size":164,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T07:53:05.852Z","etag":null,"topics":["epanet","epanet-inp","geojson"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/watergis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["JinIgarashi"],"open_collective":"watergis","custom":["https://www.paypal.me/jinigarashi"]}},"created_at":"2020-07-23T01:54:38.000Z","updated_at":"2024-10-31T09:01:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"199044c2-fb1c-41fe-99e0-05e188d147af","html_url":"https://github.com/watergis/geojson2inp","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"1644c8882276398cd82514a075ca9bb177691804"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fgeojson2inp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fgeojson2inp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fgeojson2inp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fgeojson2inp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watergis","download_url":"https://codeload.github.com/watergis/geojson2inp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watergis%2Fgeojson2inp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258626623,"owners_count":22731789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["epanet","epanet-inp","geojson"],"created_at":"2024-08-01T17:00:43.638Z","updated_at":"2025-06-14T06:04:38.537Z","avatar_url":"https://github.com/watergis.png","language":"TypeScript","funding_links":["https://github.com/sponsors/JinIgarashi","https://opencollective.com/watergis","https://www.paypal.me/jinigarashi"],"categories":["Lincense"],"sub_categories":["1. Source Code"],"readme":"# geojson2inp\n![](https://github.com/watergis/geojson2inp/workflows/Node.js%20Package/badge.svg)\n![GitHub](https://img.shields.io/github/license/watergis/geojson2inp)\n\nThis module converts GeoJSON to EPANET INP file\n\n## Installation\n\n```\nnpm install @watergis/geojson2inp\n```\n\n## Usage\n\n```js\nconst {geojson2inp} = require('@watergis/geojson2inp');\n\nconst config = {\n      title: 'test', //title for the project name which is appeared in INP\n      geojson: {\n        junctions: __dirname + '/data/junctions.geojson',  //required\n        pipes: __dirname + '/data/pipes.geojson',  //required\n        pumps: __dirname + '/data/pumps.geojson',  //optional\n        reservoirs: __dirname + '/data/reservoirs.geojson',  //optional\n        tanks: __dirname + '/data/tanks.geojson',  //optional\n        valves: __dirname + '/data/valves.geojson'  //optional\n      },\n      output: __dirname + '/data.inp'  //output INP file path\n    }\n  \nconst js2inp = new geojson2inp(config.geojson, config.output, config.title);\nconst file = await js2inp.generate() //return exported inp file path\n```\n\nBoth junctions and pipes are required. Others are optional, however you can't also analyze it in EPANET without reservoirs and tanks.\n\nAbout interfaces of GeoJSON, please see the sample data and [tests/data](./test/data) direcotry.\n\nYou can produce your own GeoJSON by using [watergis/postgis2geojson](https://github.com/watergis/postgis2geojson) package.\n\n## Build\n\n```\nnpm run build\n```\n\n## Test\n\n```\nnpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fgeojson2inp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatergis%2Fgeojson2inp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatergis%2Fgeojson2inp/lists"}