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); }
@Override public long skip(long n) throws IOException { return sliceInput.skip(n); }
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); }