Esempio n. 1
0
        public Geometry Read()
        {
            //Initialize reader
            m_index = 0;

            m_endian = BitConverter.ToBoolean(extractBytes(m_index, 1, ref m_index), 0) ? EndianType.LITTLE_ENDIAN : EndianType.BIG_ENDIAN;
            DimensionType dimension = DimensionTypeExtensions.Parse(ReadNextInt(), out GeometryType geometryType);

            return(Read(geometryType, dimension));
        }
Esempio n. 2
0
        /// <summary>
        /// Read the dimension of the Geometry.
        /// </summary>
        /// <returns></returns>
        public DimensionType ReadDimension()
        {
            string dim = readUntilToken(m_dimensions.Reverse().ToArray());

            return(DimensionTypeExtensions.Parse(dim));
        }