@Override public OnePointsBuilder pointXYZ(double x, double y, double z) { assert point == null; point = shapeFactory.pointXYZ(x, y, z); return this; }
public Point readPoint(ArrayNode arr, ShapeFactory factory) { double x = arr.get(0).asDouble(); double y = arr.get(1).asDouble(); if(arr.size()==3) { double z = arr.get(3).asDouble(); return factory.pointXYZ(x, y, z); } return factory.pointXY(x, y); }