/** * Sets the envelope of the Geometry. The Envelope description must match * that of the Geometry. */ public void setEnvelope(Envelope env) { if (!m_description.equals(env.getDescription())) throw new IllegalArgumentException(); // m_envelope = (Envelope) env.clone(); m_envelope = (Envelope) env.createInstance(); env.copyTo(m_envelope); _setDirtyFlag(DirtyFlags.DirtyIntervals, false); }
/** * Sets the envelope of the Geometry. The Envelope description must match * that of the Geometry. */ public void setEnvelope(Envelope env) { if (!m_description.equals(env.getDescription())) throw new IllegalArgumentException(); // m_envelope = (Envelope) env.clone(); m_envelope = (Envelope) env.createInstance(); env.copyTo(m_envelope); _setDirtyFlag(DirtyFlags.DirtyIntervals, false); }
private Geometry densifyEnvelope(Envelope geom) { Polygon polygon = new Polygon(geom.getDescription()); polygon.addEnvelope(geom, false); Envelope2D env2D = new Envelope2D(); geom.queryEnvelope2D(env2D); double w = env2D.getWidth(); double h = env2D.getHeight(); if (w <= m_maxLength && h <= m_maxLength) return (Geometry) polygon; return densifyMultiPath((MultiPath) polygon); }
private Geometry densifyEnvelope(Envelope geom) { Polygon polygon = new Polygon(geom.getDescription()); polygon.addEnvelope(geom, false); Envelope2D env2D = new Envelope2D(); geom.queryEnvelope2D(env2D); double w = env2D.getWidth(); double h = env2D.getHeight(); if (w <= m_maxLength && h <= m_maxLength) return (Geometry) polygon; return densifyMultiPath((MultiPath) polygon); }
VertexDescription vd = env.getDescription(); descriptionBitMask = vd.m_semanticsBitArray; if (env.isEmpty()) {
VertexDescription vd = env.getDescription(); descriptionBitMask = vd.m_semanticsBitArray; if (env.isEmpty()) {
int nattrib = getDescription().getAttributeCount() - 1; switch (index) { case 0: {
int nattrib = getDescription().getAttributeCount() - 1; switch (index) { case 0: {