get_coordinates
Read node coordinates from an EPANET network without modifying the file. Returns stored x/y positions, optionally converted to WGS84 lat/lon, and lists missing coordinates—ideal for GIS validation.
Instructions
Read the model's node coordinates (the [COORDINATES] section) without saving a file — pure read, nothing is modified. Returns each requested node's stored x/y (the model's own coordinate system) plus, when coordinates is given, its WGS84 lat/lon (coordinates: 'wgs84' means x is longitude/y is latitude; {utmZone} means x/y are UTM easting/northing meters in that zone). Nodes without stored coordinates come back in missingIds — never invented. Pass specific node ids to keep the response small, or page with offset + the 250-item cap. This is the geometry half of the GIS workflow: get_coordinates to inspect where nodes are, then sample_elevations for real IFSAR ground elevations at those points.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Zero-based index of the first node to return; combine with the 250-item cap to page through large networks. | |
| nodeIds | No | Node ids to inspect. Omit to list all nodes (capped at 250 per page); nodes without stored coordinates are reported in missingIds, never invented. | |
| networkId | Yes | The network id returned by load_network. | |
| coordinates | No | How the model's stored x/y map to WGS84. When provided, each node also gets lat/lon; when omitted, only the raw stored x/y are returned. |