@Override public Envelope1D queryInterval(int semantics, int ordinate) { Envelope1D env = new Envelope1D(); if (isEmptyImpl()) { env.setEmpty(); return env; } _updateAllDirtyIntervals(true); return m_envelope.queryInterval(semantics, ordinate); }
z_interval = envelope.queryInterval(VertexDescription.Semantics.Z, 0); if (bExportMs) mInterval = envelope .queryInterval(VertexDescription.Semantics.M, 0);
zInterval = envelope.queryInterval(Semantics.Z, 0); mInterval = envelope.queryInterval(Semantics.M, 0); idInterval = envelope.queryInterval(Semantics.ID, 0);
@Override public Envelope1D queryInterval(int semantics, int ordinate) { Envelope1D env = new Envelope1D(); if (isEmptyImpl()) { env.setEmpty(); return env; } _updateAllDirtyIntervals(true); return m_envelope.queryInterval(semantics, ordinate); }
z_interval = envelope.queryInterval(VertexDescription.Semantics.Z, 0); if (bExportMs) mInterval = envelope .queryInterval(VertexDescription.Semantics.M, 0);
zInterval = envelope.queryInterval(Semantics.Z, 0); mInterval = envelope.queryInterval(Semantics.M, 0); idInterval = envelope.queryInterval(Semantics.ID, 0);
@Override public void replaceNaNs(int semantics, double value) { addAttribute(semantics); if (isEmpty()) return; int ncomps = VertexDescription.getComponentCount(semantics); for (int i = 0; i < ncomps; i++) { Envelope1D interval = queryInterval(semantics, i); if (interval.isEmpty()) { interval.vmin = value; interval.vmax = value; setInterval(semantics, i, interval); } } }
@Override public void replaceNaNs(int semantics, double value) { addAttribute(semantics); if (isEmpty()) return; int ncomps = VertexDescription.getComponentCount(semantics); for (int i = 0; i < ncomps; i++) { Envelope1D interval = queryInterval(semantics, i); if (interval.isEmpty()) { interval.vmin = value; interval.vmax = value; setInterval(semantics, i, interval); } } }
/** * Merges this envelope with the extent of the given envelope. If this * envelope is empty, the coordinates of the given envelope * are assigned. If the given envelope is empty, this envelope is unchanged. * * @param other * The envelope to merge. */ public void merge(Envelope other) { _touch(); if (other.isEmpty()) return; VertexDescription otherVD = other.m_description; if (otherVD != m_description) mergeVertexDescription(otherVD); m_envelope.merge(other.m_envelope); for (int iattrib = 1, nattrib = otherVD.getAttributeCount(); iattrib < nattrib; iattrib++) { int semantics = otherVD.getSemantics(iattrib); int ncomps = VertexDescription.getComponentCount(semantics); for (int iord = 0; iord < ncomps; iord++) { Envelope1D intervalOther = other.queryInterval(semantics, iord); Envelope1D interval = queryInterval(semantics, iord); interval.merge(intervalOther); setInterval(semantics, iord, interval); } } }
/** * Merges this envelope with the extent of the given envelope. If this * envelope is empty, the coordinates of the given envelope * are assigned. If the given envelope is empty, this envelope is unchanged. * * @param other * The envelope to merge. */ public void merge(Envelope other) { _touch(); if (other.isEmpty()) return; VertexDescription otherVD = other.m_description; if (otherVD != m_description) mergeVertexDescription(otherVD); m_envelope.merge(other.m_envelope); for (int iattrib = 1, nattrib = otherVD.getAttributeCount(); iattrib < nattrib; iattrib++) { int semantics = otherVD.getSemantics(iattrib); int ncomps = VertexDescription.getComponentCount(semantics); for (int iord = 0; iord < ncomps; iord++) { Envelope1D intervalOther = other.queryInterval(semantics, iord); Envelope1D interval = queryInterval(semantics, iord); interval.merge(intervalOther); setInterval(semantics, iord, interval); } } }
interval = envelope.queryInterval( VertexDescription.Semantics.Z, 0); zmin = interval.vmin; interval = envelope.queryInterval( VertexDescription.Semantics.M, 0); mmin = interval.vmin;
interval = envelope.queryInterval( VertexDescription.Semantics.Z, 0); zmin = interval.vmin; interval = envelope.queryInterval( VertexDescription.Semantics.M, 0); mmin = interval.vmin;
int comps = VertexDescription.getComponentCount(semantics); for (int ord = 0; ord < comps; ord++) { Envelope1D e = env.queryInterval(semantics, ord); attribs[index++] = e.vmin; attribs[index++] = e.vmax;
int comps = VertexDescription.getComponentCount(semantics); for (int ord = 0; ord < comps; ord++) { Envelope1D e = env.queryInterval(semantics, ord); attribs[index++] = e.vmin; attribs[index++] = e.vmax;
interval = envelope.queryInterval(Semantics.Z, 0); zmin = interval.vmin; zmax = interval.vmax; interval = envelope.queryInterval(Semantics.M, 0); mmin = interval.vmin; mmax = interval.vmax;
interval = envelope.queryInterval(Semantics.Z, 0); zmin = interval.vmin; zmax = interval.vmax; interval = envelope.queryInterval(Semantics.M, 0); mmin = interval.vmin; mmax = interval.vmax;
for (int iord = 0; iord < ncomps; iord++) { double v = point.getAttributeAsDbl(semantics, iord); Envelope1D interval = queryInterval(semantics, iord); interval.merge(v); setInterval(semantics, iord, interval);
for (int iord = 0; iord < ncomps; iord++) { double v = point.getAttributeAsDbl(semantics, iord); Envelope1D interval = queryInterval(semantics, iord); interval.merge(v); setInterval(semantics, iord, interval);
Envelope1D z = env.queryInterval(Semantics.Z, 0); jsonWriter.addPairDouble("zmin", z.vmin); jsonWriter.addPairDouble("zmax", z.vmax); Envelope1D m = env.queryInterval(Semantics.M, 0); jsonWriter.addPairDouble("mmin", m.vmin); jsonWriter.addPairDouble("mmax", m.vmax);
Envelope1D z = env.queryInterval(Semantics.Z, 0); jsonWriter.addPairDouble("zmin", z.vmin); jsonWriter.addPairDouble("zmax", z.vmax); Envelope1D m = env.queryInterval(Semantics.M, 0); jsonWriter.addPairDouble("mmin", m.vmin); jsonWriter.addPairDouble("mmax", m.vmax);