final Envelope2D intersect = (Envelope2D) create(RECTANGLE, -2, 16, 35, 40);
final Envelope2D spanning = (Envelope2D) create(RECTANGLE, 16, -8, 35, 40);
for (int type=0; type<LAST; type++) {
final String label = "Type " + type;
final Envelope envelope = create(type, 0.0, -0.0, 30, 50);
final DirectPosition lower = envelope.getLowerCorner();
final DirectPosition upper = envelope.getUpperCorner();
assertEquals(label, 30, envelope.getMinimum (1), STRICT);
assertEquals(label, 50, envelope.getMaximum (1), STRICT);
assertEquals(label, 40, envelope.getMedian (1), STRICT);
assertEquals(label, 20, envelope.getSpan (1), STRICT);
assertEquals(label, 0.0, lower .getOrdinate(0), STRICT);
assertEquals(label, -180, envelope.getMinimum (0), STRICT);
assertEquals(label, -0.0, upper .getOrdinate(0), STRICT);
assertEquals(label, +180, envelope.getMaximum (0), STRICT);
assertEquals(label, 180, envelope.getMedian (0), STRICT);
assertEquals(label, 360, envelope.getSpan (0), STRICT);
switch (type) {
default: {