Exemple #1
0
        /// <summary>
        /// Creates a new feature ID that doesn't reference anything (and does not add it to the map model).
        /// </summary>
        /// <returns>The created feature ID.</returns>
        internal FeatureId CreateId()
        {
            IdPacket p = m_Group.FindPacket(m_Id);

            p.ReserveId(m_Id);
            return(p.CreateId(m_Id));
        }
Exemple #2
0
        /// <summary>
        /// Creates a feature ID from this ID handle. In order for this to work, a
        /// prior call to <c>IdHandle.ReserveId</c> is needed.
        /// </summary>
        /// <returns>The created feature ID (null if an ID hasn't been reserved).</returns>
        internal FeatureId CreateId()
        {
            // The packet has to be known.
            if (m_Packet == null)
            {
                return(null);
            }

            // Create a NativeId, clear the reserve status
            return(m_Packet.CreateId(m_Id));
        }