/** * Reads a coordinate value with the specified dimensionality. Makes the X and Y ordinates * precise according to the precision model in use. */ private void readCoordinate() throws IOException { for (int i = 0; i < inputDimension; i++) { if (i <= 1) { ordValues[i] = precisionModel.makePrecise(dis.readDouble()); } else { ordValues[i] = dis.readDouble(); } } }
private Coordinate readCoordinate() throws IOException { return new Coordinate(dis.readDouble(), dis.readDouble()); } }
/** * Reads a coordinate value with the specified dimensionality. Makes the X and Y ordinates * precise according to the precision model in use. */ private void readCoordinate() throws IOException { for (int i = 0; i < inputDimension; i++) { if (i <= 1) { ordValues[i] = precisionModel.makePrecise(dis.readDouble()); } else { ordValues[i] = dis.readDouble(); } } } }
private void readMValues() throws IOException { // measure values are currently discarded, as they cannot be represented in a JTS Geometry if (binary.hasM()) { for (int i = 0; i < binary.getNumberOfPoints(); i++) { dis.readDouble(); } } }
private void readZValues() throws IOException { if (binary.hasZ()) { for (int i = 0; i < binary.getNumberOfPoints(); i++) { binary.getCoordinates()[i].z = dis.readDouble(); } } }
double x1 = din.readDouble(); double x2 = din.readDouble(); double y1 = din.readDouble(); double y2 = din.readDouble(); din.readDouble(); din.readDouble(); din.readDouble(); din.readDouble();
/** * Reads a coordinate value with the specified dimensionality. * Makes the X and Y ordinates precise according to the precision model * in use. */ private void readCoordinate() throws IOException { for (int i = 0; i < inputDimension; i++) { if (i <= 1) { ordValues[i] = precisionModel.makePrecise(dis.readDouble()); } else { ordValues[i] = dis.readDouble(); } } }
double x1 = din.readDouble(); double x2 = din.readDouble(); double y1 = din.readDouble(); double y2 = din.readDouble(); din.readDouble(); din.readDouble(); din.readDouble(); din.readDouble();