private Point createPoint(int idx) { double x = points[idx][0]; double y = points[idx][1]; if (hasM) { if (hasZ) { return Points.create3DM(x, y, zValues[idx], mValues[idx], crsId); } else { return Points.create2DM(x, y, mValues[idx], crsId); } } else if (hasZ) { return Points.create3D(x, y, zValues[idx], crsId); } else { return Points.create2D(x, y, crsId); } }
private Point createPoint(int idx) { double x = points[idx][0]; double y = points[idx][1]; if (hasM) { if (hasZ) { return Points.create3DM(x, y, zValues[idx], mValues[idx], crsId); } else { return Points.create2DM(x, y, mValues[idx], crsId); } } else if (hasZ) { return Points.create3D(x, y, zValues[idx], crsId); } else { return Points.create2D(x, y, crsId); } }