public void AddShapeInfo(ShapeInfo info) { ShapeIndex index = ShapeIndexToBlockIndex(info.Index); MapBlock block = CreateOrGetBlock(info.SpaceType, index); if (block != null) { block.AddShape(info); } }