return slice;
} else if (vpElements.length == 2) {
String low = parsePoint(vpElements[0], true);
String high = parsePoint(vpElements[1], true);
DimensionTrimType trim = Wcs20Factory.eINSTANCE.createDimensionTrimType();
trim.setDimension(dimension);
trim.setCRS(crs);
trim.setTrimLow(low);
trim.setTrimHigh(high);
return trim;
} else {
throw new OWS20Exception("Invalid syntax, dimension [ , crs ] ( intervalOrPoint ) "
+ "where interval or point has either 1 or two elements",
WCS20ExceptionCode.InvalidEncodingSyntax, "subset");