assertEquals(coords.length, layerB.getIndex().count());
}
private void checkPointOrder(List<GeoPipeFlow> results) {
for (int i = 0; i < results.size() - 1; i++) {
GeoPipeFlow first = results.get(i);
GeoPipeFlow second = results.get(i + 1);
double d1 = (Double) first.getProperties().get("OrthodromicDistance");
double d2 = (Double) second.getProperties().get("OrthodromicDistance");
assertTrue("Point at position " + i + " (d=" + d1 + ") must be closer than point at position " + (i + 1) + " (d=" + d2
+ ")", d1 <= d2);
}
}