private static Envelope getPointEnvelope(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); if (isNaN(x) || isNaN(y)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(x, y, x, y); }
private static OGCPoint readPoint(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); Point point; if (isNaN(x) || isNaN(y)) { point = new Point(); } else { point = new Point(x, y); } return new OGCPoint(point, null); }
private static Envelope getSimpleGeometryEnvelope(BasicSliceInput input, int length) { // skip type injected by esri input.readInt(); double xMin = input.readDouble(); double yMin = input.readDouble(); double xMax = input.readDouble(); double yMax = input.readDouble(); int skipLength = length - (4 * Double.BYTES) - Integer.BYTES; verify(input.skip(skipLength) == skipLength); if (isEsriNaN(xMin) || isEsriNaN(yMin) || isEsriNaN(xMax) || isEsriNaN(yMax)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(xMin, yMin, xMax, yMax); }
private static Envelope getPointEnvelope(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); if (isNaN(x) || isNaN(y)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(x, y, x, y); }
private static Envelope getPointEnvelope(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); if (isNaN(x) || isNaN(y)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(x, y, x, y); }
private static Envelope getPointEnvelope(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); if (isNaN(x) || isNaN(y)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(x, y, x, y); }
private static OGCPoint readPoint(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); Point point; if (isNaN(x) || isNaN(y)) { point = new Point(); } else { point = new Point(x, y); } return new OGCPoint(point, null); }
private static OGCPoint readPoint(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); Point point; if (isNaN(x) || isNaN(y)) { point = new Point(); } else { point = new Point(x, y); } return new OGCPoint(point, null); }
private static OGCPoint readPoint(BasicSliceInput input) { double x = input.readDouble(); double y = input.readDouble(); Point point; if (isNaN(x) || isNaN(y)) { point = new Point(); } else { point = new Point(x, y); } return new OGCPoint(point, null); }
private static Envelope getSimpleGeometryEnvelope(BasicSliceInput input, int length) { // skip type injected by esri input.readInt(); double xMin = input.readDouble(); double yMin = input.readDouble(); double xMax = input.readDouble(); double yMax = input.readDouble(); int skipLength = length - (4 * Double.BYTES) - Integer.BYTES; verify(input.skip(skipLength) == skipLength); if (isEsriNaN(xMin) || isEsriNaN(yMin) || isEsriNaN(xMax) || isEsriNaN(yMax)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(xMin, yMin, xMax, yMax); }
private static Envelope getSimpleGeometryEnvelope(BasicSliceInput input, int length) { // skip type injected by esri input.readInt(); double xMin = input.readDouble(); double yMin = input.readDouble(); double xMax = input.readDouble(); double yMax = input.readDouble(); int skipLength = length - (4 * Double.BYTES) - Integer.BYTES; verify(input.skip(skipLength) == skipLength); if (isEsriNaN(xMin) || isEsriNaN(yMin) || isEsriNaN(xMax) || isEsriNaN(yMax)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(xMin, yMin, xMax, yMax); }
private static Envelope getSimpleGeometryEnvelope(BasicSliceInput input, int length) { // skip type injected by esri input.readInt(); double xMin = input.readDouble(); double yMin = input.readDouble(); double xMax = input.readDouble(); double yMax = input.readDouble(); int skipLength = length - (4 * Double.BYTES) - Integer.BYTES; verify(input.skip(skipLength) == skipLength); if (isEsriNaN(xMin) || isEsriNaN(yMin) || isEsriNaN(xMax) || isEsriNaN(yMax)) { // TODO: isn't it better to return empty envelope instead? return null; } return new Envelope(xMin, yMin, xMax, yMax); }