void _copyToUnsafe(MultiVertexGeometryImpl dst) {
		_verifyAllStreams();
		dst.m_description = m_description;
		dst.m_vertexAttributes = null;
		int nattrib = m_description.getAttributeCount();
		AttributeStreamBase[] cloneAttributes = null;
		if (m_vertexAttributes != null) {
			cloneAttributes = new AttributeStreamBase[nattrib];
			for (int i = 0; i < nattrib; i++) {
				if (m_vertexAttributes[i] != null) {
					int ncomps = VertexDescription
							.getComponentCount(m_description
									._getSemanticsImpl(i));
					cloneAttributes[i] = m_vertexAttributes[i]
							.restrictedClone(getPointCount() * ncomps);
				}
			}
		}

		if (m_envelope != null) {
			dst.m_envelope = (Envelope) m_envelope.createInstance();
			m_envelope.copyTo(dst.m_envelope);
			// dst.m_envelope = (Envelope) m_envelope.clone();
		} else
			dst.m_envelope = null;

		dst.m_pointCount = m_pointCount;
		dst.m_flagsMask = m_flagsMask;
		dst.m_vertexAttributes = cloneAttributes;

		try {
			_copyToImpl(dst); // copy child props
		} catch (Exception ex) {
			dst.setEmpty();
			throw new RuntimeException(ex);
		}
	}
void _copyToUnsafe ( MultiVertexGeometryImpl dst ) { _verifyAllStreams ( ) ; dst . m_description = m_description ; dst . m_vertexAttributes = null ; int nattrib = m_description . getAttributeCount ( ) ; AttributeStreamBase [ ] cloneAttributes = null ; if ( m_vertexAttributes != null ) { cloneAttributes = new AttributeStreamBase [ nattrib ] ; for ( int i = 0 ; i < nattrib ; i ++ ) { if ( m_vertexAttributes [ i ] != null ) { int ncomps = VertexDescription . getComponentCount ( m_description . _getSemanticsImpl ( i ) ) ; cloneAttributes [ i ] = m_vertexAttributes [ i ] . restrictedClone ( getPointCount ( ) * ncomps ) ; } } } if ( m_envelope != null ) { dst . m_envelope = ( Envelope ) m_envelope . createInstance ( ) ; m_envelope . copyTo ( dst . m_envelope ) ; } else dst . m_envelope = null ; dst . m_pointCount = m_pointCount ; dst . m_flagsMask = m_flagsMask ; dst . m_vertexAttributes = cloneAttributes ; try { _copyToImpl ( dst ) ; } catch ( Exception ex ) { dst . setEmpty ( ) ; throw new RuntimeException ( ex ) ; } }
Does not check geometry type. Used to copy Polygon to Polyline