public double[] getCoordinates(StringTokenizer tokenizer)
			throws ParseException {
		List<Double> coordinates = new ArrayList<Double>();
		while (tokenizer.hasMoreElements()) {
			coordinates.add((double) getInteger(tokenizer));
		}

		// Throw exception if missing coordinate.

		if (coordinates.size() % 2 == 0) {
			double[] coordArray = new double[coordinates.size()];

			for (int i = 0; i < coordinates.size(); i++) {
				coordArray[i] = coordinates.get(i).doubleValue();

			}
			return coordArray;

		} else {
			throw new ParseException();
		}
	}