Пример #1
0
        private Int32 computeIndexFileLengthInWords(ShapeFileIndex index)
        {
            Int32 length = ShapeFileConstants.HeaderSizeBytes / 2;

            length += index.Count * ShapeFileConstants.IndexRecordByteLength / 2;

            return(length);
        }
Пример #2
0
        private Int32 computeMainFileLengthInWords(ShapeFileIndex index)
        {
            Int32 length = ShapeFileConstants.HeaderSizeBytes / 2;

            foreach (KeyValuePair <UInt32, ShapeFileIndex.IndexEntry> kvp in index)
            {
                length += kvp.Value.Length + ShapeFileConstants.ShapeRecordHeaderByteLength / 2;
            }

            return(length);
        }