For epanet-js to correctly display your network on the map, all geographic coordinates in your INP file (for junctions, reservoirs, tanks, and pipe vertices) must be in the WGS84 (EPSG:4326) geographic coordinate system (latitude and longitude).

If your INP file uses a different projection system (e.g., a local state plane or UTM coordinates), you will encounter an error message during import:

image.png

Reproject your network

Let’s see how to effortlessly update your model’s projection in just a few steps.

1. Go to the EPANET Projection Converter utility

In the top right corner of epanet-js there's a Help dropdown menu. We'll click it and choose Utility apps.

image.png

2. Select Projection Converter

This will take us to a complimentary site with different EPANET utils. You can also go directly from https://utils.epanetjs.com/. Feel free to bookmark it for later use.

image.png

We select the Projection Converter tool; this will open the application.

image.png

3. Import your network

To import our network we'll click Select files or drop the file in the drop area.

image.png

4. Select Source Projection

Then we need to select the current Source Projection for this model. We can do that using the search function or by inputing it with a PRJ file or copy and pasting in a text area the proj4 string or the WKT definition.

This model we’re using as example, uses the EPSG:27700 British National Grid projection. We’ll look up for it in Select projection.

image.png