You can compute some statistics on related locations. This transformation is available since 2013.01.

For example: you have catchments and rain gauges. The rain gauges have a relation to the catchments, called CATCHMENT.
Now you can compute the statistics per catchments of all the gauges for that catchment.
Therefore you define (in this example) as output locations the catchments and as input locations the rain gauges. You define a locationRelationId the id CATCHMENT.

Another example: you want to aggregate all your upstream laterals into one inflow. Therefore you define at every lateral the outflow point as locationRelation, e.g. named OUTFLOW. As an outflow point may have multiple laterals as inflow, you now want to sum the laterals per inflow point.
Therefore you use as output locations (or locationSet) the inflow points, as input locations the catchments and as locationRelationId OUTFLOW.

It is possible to have the Location relation for either the input or the output locations. Relation points from input to output or from output to input. When the relation is available in both directions a config error is logged.

The possible statistics are:

<statisticsRelatedLocations>
  <sum>
    <inputVariable>
      <timeSeriesSet>
        <moduleInstanceId>Prep</moduleInstanceId>
        <valueType>scalar</valueType>
        <parameterId>Q</parameterId>
        <locationSetId>laterals</locationSetId>
        <timeSeriesType>temporary</timeSeriesType>
        <timeStep unit="minute" multiplier="5"/>
        <relativeViewPeriod unit="hour" start="-96" end="0" startOverrulable="true"/>
        <readWriteMode>read only</readWriteMode>
      </timeSeriesSet>
    </inputVariable>
    <locationRelationId>OUTFLOW</locationRelationId>
    <outputVariable>
      <timeSeriesSet>
        <moduleInstanceId>Prep</moduleInstanceId>
        <valueType>scalar</valueType>
        <parameterId>Q</parameterId>
        <locationSetId>outflowpoints</locationSetId>
        <timeSeriesType>temporary</timeSeriesType>
        <timeStep unit="minute" multiplier="5"/>
        <relativeViewPeriod unit="hour" start="-96" end="0" startOverrulable="true"/>
        <readWriteMode>read only</readWriteMode>
      </timeSeriesSet>
    </outputVariable>
  </sum>
</statisticsRelatedLocations>